Calculate Hyperbolic cosine of a value in R Programming – cosh() Function
Last Updated :
09 Mar, 2021
cosh() function in R Language is used to calculate the hyperbolic cosine value of the numeric value passed to it as the argument.
Syntax: cosh(x)
Parameter:
x: Numeric value
Example 1:
Python3
x1 < - 90
x2 < - 30
cosh(x1)
cosh(x2)
|
Output:
[1] 6.102016e+38
[1] 5.343237e+12
Example 2:
Python3
x1 < - pi
x2 < - pi / 3
cosh(x1)
cosh(x2)
|
Output:
[1] 11.59195
[1] 1.600287
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...