View Full Version : is tan in radians or degrees
hyperzoanoid
2002.06.12, 06:07 PM
im using a nsview and was wondering if tan,sin,and cos return angles in radians or degrees?
OneSadCookie
2002.06.12, 07:10 PM
they take angles in radians. (They return scalars).
Why does it say you're on my ignore list when you're blatantly not?
Johan
2002.06.12, 07:48 PM
Originally posted by OneSadCookie
Why does it say you're on my ignore list when you're blatantly not?
My user ignors your post too, even though when I view my ignore list it's empty.
Go figure.
Edit: I just found out that all unregistred users gets ignored. Is it supposed to bee like that? It's pretty annoying.
hyperzoanoid
2002.06.12, 09:44 PM
ok i got the radians thing down, i might not be on because i usually have cookies turned off, but i think im registered now.
hyperzoanoid
2002.06.12, 09:46 PM
noooooooo, but i just registered! hmm i guess ill try it again later
hyperzoanoid
2002.06.13, 11:55 AM
can i ask another question while we are at it? What is the tan^-1() equivalent in C?
in project builder i tested these out and got these answers
tan(.5)=0.546302
atan(.5)=0.463648
when on my calculator i get
tan(.5)=.0087
tan^-1(.5)=26.5//this is what i want
is atan() the same as tan^-1() on my calculator? Am i doing something wrong?
Nimrod
2002.06.13, 01:14 PM
Originally posted by hyperzoanoid
can i ask another question while we are at it? What is the tan^-1() equivalent in C?
in project builder i tested these out and got these answers
tan(.5)=0.546302
atan(.5)=0.463648
when on my calculator i get
tan(.5)=.0087
tan^-1(.5)=26.5//this is what i want
is atan() the same as tan^-1() on my calculator? Am i doing something wrong?
Your calculator is in degrees mode, while the computer works in radians, as all real mathematicians do :D
Switch your calculator to radians mode and they'll be the same. Or, take the computer's result from tan(), and multiply by 180, and divide by PI, and do the same to your input to atan().
hyperzoanoid
2002.06.13, 01:53 PM
thanks for clearing that up, i would have never got it. Yay, now my prog works! :)
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.