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