Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python cmath.asin() function is used to return arc sine of a complex number. There are two branch cuts:

  • Extends right from 1 along the real axis to ∞, continuous from below.
  • Extends left from -1 along the real axis to -∞, continuous from above.

Syntax

cmath.asin(x)

Parameters

x Required. Specify the value.

Return Value

Returns the arc sine of the value.

Example:

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

import cmath

x = 2 + 2j
y = 2
z = 2j

print(cmath.asin(x))
print(cmath.asin(y))
print(cmath.asin(z))

The output of the above code will be:

(0.7542491446980459+1.7343245214879666j)
(1.5707963267948966+1.3169578969248166j)
1.4436354751788103j

❮ Python cMath Module