How to set the tangent function in python?
I would like someone to help me define the tangent function using python with constraints at points where the function does not exist(pi/2 + k*pi(integer k). Thank you in advance.
0
Author: Wilson Vital, 2018-04-15
1 answers
Use the library math
. It has a command called math.tan(x)
, in which it returns the tangent arc of X in radians.
Example:
import math
math.tan(30)
>>> -6.40533119665
0
Author: Davis Roberto, 2018-04-16 17:18:53