Python - cmath.acosh() Function
The Python cmath.acosh() function is used to return inverse hyperbolic cosine of a complex number. The hyperbolic cosine of x is defined as:
There is one branch cut, extending left from 1 along the real axis to -∞, continuous from above.
Syntax
cmath.acosh(x)
Parameters
x |
Required. Specify the value. |
Return Value
Returns the inverse hyperbolic cosine of a value.
Example:
In the below example, acosh() function is used to find out the inverse hyperbolic cosine of a given complex number.
import cmath x = 2 + 2j y = 2 z = 2j print(cmath.acosh(x)) print(cmath.acosh(y)) print(cmath.acosh(z))
The output of the above code will be:
(1.7343245214879666+0.8165471820968505j) (1.3169578969248166+0j) (1.4436354751788103+1.5707963267948966j)
❮ Python cMath Module