>>> import math
>>> math.sin(68)
-0.897927680689
But
sin(68) = 0.927 (3 decimal places)
Any ideas about why I am getting this result?
Thanks.
>>> import math
>>> math.sin(68)
-0.897927680689
But
sin(68) = 0.927 (3 decimal places)
Any ideas about why I am getting this result?
Thanks.
>>> import math
>>> print math.sin.__doc__
sin(x)
Return the sine of x (measured in radians).
math.sin expects its argument to be in radians, not degrees, so:
>>> import math
>>> print math.sin(math.radians(68))
0.927183854567