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

cmath.acosh(x)

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.

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))

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.