VOOZH about

URL: https://www.geeksforgeeks.org/python/python-math-tan-function/

⇱ Python | math.tan() function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | math.tan() function

Last Updated : 20 Mar, 2019
In Python, math module contains a number of mathematical operations, which can be performed with ease using the module. math.tan() function returns the tangent of value passed as argument. The value passed in this function should be in radians.
Syntax: math.tan(x) Parameter: x : value to be passed to tan() Returns: Returns the tangent of value passed as argument
Code #1:   Code #2:
Output:
in_array : [0. 0.34906585 0.6981317 1.04719755 1.3962634 1.74532925 2.0943951 2.44346095 2.7925268 3.14159265] out_array : [0.0, 0.36397023426620234, 0.8390996311772799, 1.7320508075688767, 5.671281819617707, -5.671281819617711, -1.7320508075688783, -0.8390996311772804, -0.36397023426620256, -1.2246467991473532e-16]
👁 Image
Comment
Article Tags: