Metoda cmath.tan() Pythonu
Příklad
Najděte tangens komplexního čísla:
#Import cmath Library
import cmath
#Return the tangent of a
complex number
print (cmath.tan(2 + 3j))
Definice a použití
Metoda cmath.tan()
vrací tangens komplexního čísla.
Syntax
cmath.tan(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Technické údaje
Návratová hodnota: | Hodnota complex představující tangens komplexního čísla |
---|---|
Verze Pythonu: | 1.5 |