>>> 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
More Related Contents:
- Python cos(90) and cos(270) not 0
- Fastest way to list all primes below N
- Sieve of Eratosthenes – Finding Primes Python
- Python math is wrong [duplicate]
- Check if a number is a perfect square
- Convert a number range to another range, maintaining ratio
- How can I convert radians to degrees with Python?
- C and Python – different behaviour of the modulo (%) operation
- How to make scipy.interpolate give an extrapolated result beyond the input range?
- Round float to x decimals?
- Python and Powers Math
- Math operations from string [duplicate]
- Difference between the built-in pow() and math.pow() for floats, in Python?
- Python: sort function breaks in the presence of nan
- How can I quickly estimate the distance between two (latitude, longitude) points?
- Euclidean algorithm (GCD) with multiple numbers?
- How to get all combination of n binary value? [duplicate]
- Linear regression of arrays containing NANs in Python/Numpy
- how can i show an irrational number to 100 decimal places in python?
- Is cube root integer?
- Finding Signed Angle Between Vectors
- Multiple variables in SciPy’s optimize.minimize
- Rotate point about another point in degrees python
- Python floating-point math is wrong [duplicate]
- Computing Standard Deviation in a stream
- Inaccurate Logarithm in Python
- How to pad a string with leading zeros in Python 3 [duplicate]
- What’s the simplest way to extend a numpy array in 2 dimensions?
- Rounding floats so that they sum to precisely 1
- Why is numpy.prod() incorrectly returning negative results, or 0, for my long lists of natural numbers?