Open In App

Calculate arc cosine of a value in R programming – acos() function

Last Updated : 10 May, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

The acos() is an inbuilt function in R Programming which is used to calculate arc cosine of the specified radian value and output is also in radians.

Syntax: acos(radian)
Return: Returns the arc cosine value of radian.

Example 1:




# Using acos() method
gfg <- acos(pi/4)
  
print(gfg)


Output:

[1] 0.7853982

Example 2:




# Using acos() method
gfg <- acos(pi/6)
  
print(gfg)


Output:

[1] 1.019727

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads