Easy Tutorial
❮ Ref Set Intersection Python Cgi Programming ❯

Python math.asin() Method

Python math Module

Python math.asin(x) returns the arcsine of x, in radians. The result is between -pi/2 and pi/2.

The parameter for math.asin() must be between -1 and 1.

Python Version: 1.4

Syntax

The syntax for the math.asin() method is as follows:

math.asin(x)

Parameter Description:

Return Value

Returns a floating-point number representing the arcsine of a number.

Example

The following example returns the arcsine of different numbers:

Example

# Import math package
import math

# Print arcsine values
print(math.asin(0.55))
print(math.asin(-0.55))
print(math.asin(0))
print(math.asin(1))
print(math.asin(-1))

Output result:

0.5823642378687435
-0.5823642378687435
0.0
1.5707963267948966
-1.5707963267948966

Python math Module

❮ Ref Set Intersection Python Cgi Programming ❯