Math functions in Python  Set 2 (logarithmic and power functions)
Trigonometric and angle functions are discussed in this article.
1. sin () : — This function returns the sine of the value passed as an argument. The value passed to this function must be in radians .
2. cos () : — This function returns the cosine of the value passed as an argument. The value passed to this function must be in radians .

Output:
The value of sine of pi / 6 is: 0.49999999999999994 The value of cosine of pi / 6 is: 0.8660254037844387
3. tan () : — This function returns the tangent of the value passed as an argument. The value passed to this function must be in radians .
4. hypot (a, b) : — returns the hypotenuse of the values passed in the arguments. Returns numerically sqrt (a * a + b * b) .

Output:
The value of tangent of pi / 6 is: 0.5773502691896257 The value of hypotenuse of 3 and 4 is: 5.0
5. degrees () : — This function is used to convert the argument value from radians to degrees .
6. radians () : — This function is used to convert the argument value from degrees to radians .

Output:
The converted value from radians to degrees is: 29.999999999999996 The converted value from degrees to radians is: 0.5235987755982988
This article courtesy of Manjit Singh . If you are as Python.Engineering and would like to contribute, you can also write an article using contribute.python.engineering or by posting an article contribute @ python.engineering. See my article appearing on the Python.Engineering homepage and help other geeks.
Please post comments if you find anything wrong or if you would like to share more information on the topic discussed above.