Python3 asin() Function
Description
asin()Returns the arcsine of x, in radians.
Syntax
The following is the syntax of the asin() method:
import math math.asin(x)
Note:asin() is not directly accessible; you need to import the math module, and then call the method via the math static object.
Parameters
- x -- A value between -1 and 1. If x is greater than 1, it will generate an error.
Return Value
Returns the arcsine of x, in radians.
Example
The following example demonstrates the use of the asin() method:
#!/usr/bin/python3
import math
print ("asin(0.64) : ", math.asin(0.64))
print ("asin(0) : ", math.asin(0))
print ("asin(-1) : ", math.asin(-1))
print ("asin(1) : ", math.asin(1))
After running the above example, the output result is:
asin(0.64) : 0.694498265626556 asin(0) : 0.0 asin(-1) : -1.5707963267948966 asin(1) : 1.5707963267948966Other Extensions
Python3 Numbers