Python Tutorial Python Advanced Python References Python Libraries

Python math - asin() Function



The Python math.asin() function returns arc sine of a value. The returned value will be in the range -𝜋/2 through 𝜋/2.

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

Syntax

math.asin(x)

Parameters

x Required. Specify the value.

Return Value

Returns the arc sine of the value.

Example:

In the example below, 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(-0.5))
print(math.asin(-1))

The output of the above code will be:

0.5235987755982989
1.5707963267948966
-0.5235987755982989
-1.5707963267948966

❮ Python Math Module