Calculate Inverse sine of a value in R Programming – asin() Function
asin() function in R Language is used to calculate the inverse sine value of the numeric value passed to it as argument.
Syntax: asin(x)
Parameter:
x: Numeric value
Example 1:
# R code to calculate inverse sine of a value # Assigning values to variablesx1 <- -1x2 <- 0.5 # Using asin() Functionasin(x1)asin(x2) |
Output:
[1] -1.570796 [1] 0.5235988
Example 2:
# R code to calculate inverse sine of a value # Assigning values to variablesx1 <- 0.224647x2 <- 0.8660254 # Using asin() Functionasin(x1)asin(x2) |
Output:
[1] 0.2265808 [1] 1.047198

