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
Logged In: YES user_id=1686109 Originator: NO
The angle should be given in radians.
Try >> tan(0) >> tan(2*pi)
- Jeremy
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
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
Log in to post a comment.
Logged In: YES
user_id=1686109
Originator: NO
The angle should be given in radians.
Try
>> tan(0)
>> tan(2*pi)
- Jeremy
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
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