Python cmath.tanh() Metode
Voorbeeld
Vind die hiperboliese tangens van 'n komplekse getal:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
Definisie en gebruik
Die cmath.tanh()
metode gee die hiperboliese tangens van 'n komplekse getal terug.
Sintaksis
cmath.tanh(x)
Parameterwaardes
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Tegniese besonderhede
Terugkeerwaarde: | 'n complex Waarde wat die hiperboliese tangens van 'n komplekse getal voorstel |
---|---|
Python weergawe: | 1.5 |