What is asin() in R?
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.
Methodology
To convert radians to degrees, use:
degrees = radians * ( 180.0 / pi )
Syntax
asin(num)
Parameter
This function requires a number as a parameter.
Return value
asin() returns the inverse sine of [-pi/2, pi/2] radians.
Code
#Positive number in radiansa <- asin(0.5);print(paste0("asin(0.5): ", a, " radians"))#negative number in radiansb <- asin(-0.5);print(paste0("asin(-0.5): ", b, " radians"))#applying asin() and then converting the result in radians to degrees#radians = 0.5c <- asin(0.5) * (180.0 / pi);print(paste0("asin(0.5): ", c, " degrees"))