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


The Python Math asin() function is used to return arc sine of a value. The return value will be in the range -𝜋/2 through 𝜋/2.

Note: asin() is the inverse of sin().

Syntax

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 value.

import math

print(math.asin(0.5))
print(math.asin(1))
print(math.asin(2))

The output of the above code will be:

0.5235987755982989
1.5707963267948966
ValueError: math domain error

❮ Python Math Module