Skip to content
Related Articles

Related Articles

Improve Article

Python | sympy.tan() method

  • Last Updated : 19 Jul, 2019

In simpy, tan() method is an tangent function. Using the tan(x) method in simpy module, we can compute the tangent or arctangent of x.

Syntax : sympy.tan(x)

Return : Returns the tangent of x 

Code #1:
Below is the example using tan() method to find inverse tangenet function.

# importing sympy library
from sympy import *
# calling tan() method on expression
geek1 = tan(-1)
geek2 = tan(pi / 3)



Code #2:

# importing sympy library
from sympy import tan
# calling tan() method on expression
geek = tan(2 + 5j)


-6.87216388011928e-5 + 1.000059350149*I

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up
Recommended Articles
Page :