Python Tutorial Python Advanced Python Resources Python Libraries
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

Python - math.asin() Function



The Python math.asin() function returns arc sine of a value. The return 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

5