VOOZH about

URL: https://www.geeksforgeeks.org/python/mathematical-functions-in-python-set-3-trigonometric-and-angular-functions/

⇱ Mathematical Functions in Python | Set 3 (Trigonometric and Angular Functions) - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Mathematical Functions in Python | Set 3 (Trigonometric and Angular Functions)

Last Updated : 28 Jul, 2016
Some of the mathematical functions are discussed in below set 1 and set 2 Mathematical Functions in Python | Set 1 (Numeric Functions) Mathematical Functions in Python | Set 2 (Logarithmic and Power Functions) Trigonometric and angular functions are discussed in this article. 1. sin() :- This function returns the sine of value passed as argument. The value passed in this function should be in radians. 2. cos() :- This function returns the cosine of value passed as argument. The value passed in this function should 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 value passed as argument. The value passed in this function should be in radians. 4. hypot(a, b) :- This returns the hypotenuse of the values passed in arguments. Numerically, it returns the value of 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 argument value from radians to degrees. 6. radians() :- This function is used to convert 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
Comment
Article Tags:
Article Tags: