The arc sine
function
Figure 1 below shows the mathematical representation of the asin()
function.
Figure 2, below, shows the visual representation of the asin()
function.
To convert radians
to degrees
, use:
degrees = radians * ( 180.0 / pi )
asin(num)
This function requires a number as a parameter.
asin()
returns the inverse sine of [-pi/2, pi/2]
radians.
#Positive number in radians a <- asin(0.5); print(paste0("asin(0.5): ", a, " radians")) #negative number in radians b <- asin(-0.5); print(paste0("asin(-0.5): ", b, " radians")) #applying asin() and then converting the result in radians to degrees #radians = 0.5 c <- asin(0.5) * (180.0 / pi); print(paste0("asin(0.5): ", c, " degrees"))
RELATED TAGS
CONTRIBUTOR
View all Courses