The asin() functionarc sine function
Figure 1 shows the mathematical representation of the asin() function, and Figure 2 shows the visual representation of the asin() function.
Note: The
mathmodule is required for this function.
To convert radians to degrees, use:
degrees = radians * ( 180.0 / pi )
asin(num)
This function requires a number as a parameter. The parameter must be a double value between -1 and 1.
asin() returns the inverse sine of [-pi/2, pi/2] radians.
import math#positive number in radiansprint "The value of asin(0.5) : ", math.asin(0.5), "Radians"#negative number in radiansprint "The value of asin(-0.5) : ", math.asin(-0.5), "Radians"#applying asin() and then converting the result in radians to degrees#radians = 0.5#PI = 3.14159265result = math.asin(0.5) * (180.0 / math.pi)print "The value of asin(0.5) : ", result ,"Degrees"