The cmath.acosh() function computes the inverse hyperbolic cosine of a give real or complex number.

Syntax:
cmath.acosh(x)
copy

Where, is the numerical value(real or complex) whose inverse hyperbolic cosine we want.

The function returns a complex number regardless of whether the input argument is real or complex. If the argument is real, the imaginary part of the returned value is 0j.

ExampleEdit & Run
import cmath

print(cmath.acosh(5))

print(cmath.acosh(1.5430806348152437))
print(cmath.acosh(3.7621956910836314))
print(cmath.acosh(2 +3j))
print(cmath.acosh(3j))
print(cmath.acosh(1 +4j))
print(cmath.acosh(-0.1))
copy
Output:
(2.2924316695611777+0j) (1+0j) (2+0j) (1.9833870299165355+1.0001435424737972j) (1.8184464592320668+1.5707963267948966j) (2.1225501238100715+1.3324788649850303j) 1.6709637479564565j [Finished in 0.010988355614244938s]

The cmath(complex math) module is made primarily for working with complex numbers. If you ar working with real numbers the math.acosh() may be more relevant.