The math.asin()
function returns the arc sine(inverse sine) of a given number, x.
math.asin(x)
Where x
is any real number.
The arc sine is calculated as the angle in radians whose sine is x
.
import math
x = 0.5
result = math.asin(x)
print(result)
The asin()
function returns the angle in radians, we can use the math.degrees() to turn the angle into degrees.
import math
radians = math.asin(0.5)
degrees = math.degrees(radians)
print(degrees)
import math
print(math.degrees(math.asin(0.7071067811865476)))
print(math.degrees(math.asin(0.8660254037844386)))
print(math.degrees(math.asin(0.9659258262890683)))
print(math.degrees(math.asin(0.984807753012208)))