Python cmath.cosh() Método
Ejemplo
Encuentra el coseno hiperbólico de un número complejo:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definición y uso
El cmath.cosh()
método devuelve el coseno hiperbólico de un número complejo.
Sintaxis
cmath.cosh(x)
Valores paramétricos
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Detalles técnicos
Valor devuelto: | Un complex valor, que representa el coseno hiperbólico de un número complejo |
---|---|
Versión de Python: | 1.5 |