Python Tutorial Python Advanced Python References Python Libraries

Python cmath - asinh() Function



The Python cmath.asinh() function returns the complex inverse hyperbolic sine of a complex number z. It is a function on complex plane, and has two branch cuts:

  • Extends from 1j along the imaginary axis to ∞j, continuous from the right.
  • Extends from -1j along the imaginary axis to -∞j, continuous from the left.

Mathematically, it can be expressed as:

complex asinh

Syntax

cmath.asinh(z)

Parameters

z Required. Specify the value.

Return Value

Returns the complex inverse hyperbolic sine of z.

Example:

In the example below, asinh() function is used to find out the complex inverse hyperbolic sine of a given complex number.

import cmath

z1 = 2 + 2j
z2 = 2
z3 = 2j

print("cmath.asinh(z1):", cmath.asinh(z1))
print("cmath.asinh(z2):", cmath.asinh(z2))
print("cmath.asinh(z3):", cmath.asinh(z3))

The output of the above code will be:

cmath.asinh(z1): (1.7343245214879666+0.7542491446980459j)
cmath.asinh(z2): (1.4436354751788103+0j)
cmath.asinh(z3): (1.3169578969248166+1.5707963267948966j)

❮ Python cMath Module