Open In App

Compute the Hyperbolic arccosine of numeric data in R Programming – acosh() Function

Improve
Improve
Like Article
Like
Save
Share
Report

acosh() function in R Language is used to compute the hyperbolic arccosine of numeric data.

Syntax:acosh(x)

Parameters:
x: Numeric value, array or vector

Example 1:




# R program to illustrate 
# acosh function 
     
# Calling acosh() function over 
# different numbers 
acosh(0
acosh(1


Output:

[1] NaN
[1] 0

Example 2:




# R program to illustrate 
# acosh function 
     
# Calling acosh() function over 
# different numbers 
acosh(3 / 2
acosh(2


Output:

[1] 0.9624237
[1] 1.316958

Last Updated : 10 Jun, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads