I would like someone to help me define the tangent function using python with constraints on points where the function does not exist (pi / 2 + k * pi (k integer).
I would like someone to help me define the tangent function using python with constraints on points where the function does not exist (pi / 2 + k * pi (k integer).
Use the math
library. It has a command called math.tan(x)
, in which it returns the arc tangent of x to radians.
Example:
import math
math.tan(30)
>>> -6.40533119665