Related Tags

r
math
asin
communitycreator

# What is asin() in R?

harris910

The asin()also called the arc sine function function returns the inverse sine of a number. To be more specific, it returns the inverse sine of a number in radians.

Figure 1 below shows the mathematical representation of the asin() function.

Figure 1: Mathematical representation of inverse sine function

Figure 2, below, shows the visual representation of the asin() function.

Figure 2: Visual representation of inverse sine 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 a numberradians sent as a parameter. The return value lies in the interval [-pi/2, pi/2] radians.

### Code

#Positive number in radians
a <- asin(0.5);

b <- asin(-0.5);

#applying asin() and then converting the result in radians to degrees
c <- asin(0.5) * (180.0 / pi);
print(paste0("asin(0.5): ", c, " degrees"))


RELATED TAGS

r
math
asin
communitycreator

CONTRIBUTOR

harris910
RELATED COURSES

View all Courses

Keep Exploring

Learn in-demand tech skills in half the time 