• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • ChainLink
  • Bugs

cos,sin,tan gave different answers for the same angle

Status: Beta
Brought to you by: jmagland
  • Summary
  • Files
  • Reviews
  • Support
  • Bugs
  • News
  • Donate
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#1 cos,sin,tan gave different answers for the same angle

open
nobody
None
5
2007-03-28
2007-02-05
stdimitriadis
No

for trigonometical functions as sin,cos and tan the value
for the same angle must be the same but when i gave sin(0) and sin(360) the answer was different...
i was noticed the same with the others functions too

Discussion

  • Jeremy Magland

    Jeremy Magland - 2007-02-05

    Logged In: YES
    user_id=1686109
    Originator: NO

    The angle should be given in radians.

    Try
    >> tan(0)
    >> tan(2*pi)

    - Jeremy

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-02-05
    • status: open --> closed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • stdimitriadis

    stdimitriadis - 2007-03-28

    Logged In: YES
    user_id=1685839
    Originator: YES

    i knew it about radians but i think that it will be good to support also degrees

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • stdimitriadis

    stdimitriadis - 2007-03-28
    • status: closed --> open
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • Jeremy Magland

    Jeremy Magland - 2007-03-28

    Logged In: YES
    user_id=1686109
    Originator: NO

    I am trying to stay close to Matlab syntax. Do you know if matlab supports trig functions of degrees (without having to multiply by pi/180?).

    Jeremy

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise