Python math.asin() Method
Example
Find the arc sine of different numbers:
# Import math Library
import math
# Return the arc sine
value of numbers
print (math.asin(0.55))
print (math.asin(-0.55))
print (math.asin(0))
print (math.asin(1))
print (math.asin(-1))
Try it Yourself »
Definition and Usage
The math.asin()
method returns the arc sine of a number.
Note: The parameter passed in asin() must lie between -1 to 1.
Tip: 1 will return the value of PI/2, and -1 will return the value of -PI/2.
Syntax
math.asin(x)
Parameter Values
Parameter | Description |
---|---|
x | Required. A number to find the arc sine of, in the range -1 to 1. If the value is outside -1 to 1, it returns a ValueError. If the value is not a number, it returns a TypeError |
Technical Details
Return Value: | A float value, representing the arc
sine of a number |
---|---|
Python Version: | 1.4 |