the cos(180) should = -1 right
and the sin of 180 should = 1 right
then why does vb get cos(180) =-.5
and sin(180) = -.8
???
Printable View
the cos(180) should = -1 right
and the sin of 180 should = 1 right
then why does vb get cos(180) =-.5
and sin(180) = -.8
???
since people think in degrees, and common calculators have been made to follow people's thinking and work in degrees, you probably think that computers do to. Wrong. Natural math uses radians and so do computers.
This result is in radians. Use windows calculator, set it in radians and find the cosine of 180. You find the same result. You first have to make conversions.
deg = rad * 180/pi right ?
rad = sin(180)
rad = -.8
-.8 * 180 = -144
-144 / 3.14 = -45
????????????? what degreese is supoosed to be between -1 and 1
what am i do ing wrong
thanks in advance
You're mixing all up!
A Sinus is Sinus, you can't convert it from Radians to degrees, since it'S a Sinus!
So
Value=sin(180[degrees])
Value=sin ((180[degrees]*PI/180)[radians])
Value=0
yes is see now i put in the degreese converted to a radian and i get out the number between -1 and 1 so i must convert to radians before signing(guess this is a word) it
thanks for the help