[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trig functions..



Ok, have a querry for you all...

Understanding that the Math.sin(number) method
requires its argument (number) to be in radian
form, and given that the relationship between a
degree and a radian is PI/180, then why doesn't
the following retunr the proper result?

D=60
sine  = Math.sin(D(Math.PI/180))

sine of the angle should be .8

The statement returns .866xxxx?
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/