Calculate Hyperbolic sine of a value in R Programming – sinh() Function
sinh() function in R Language is used to calculate the hyperbolic sine value of the numeric value passed to it as argument.
Syntax: sinh(x)
Parameter:
x: Numeric value
Example 1:
# R code to calculate hyperbolic sine of a value # Assigning values to variablesx1 <- -90x2 <- -30 # Using sinh() Functionsinh(x1)sinh(x2) |
Output:
[1] -6.102016e+38 [1] -5.343237e+12
Example 2:
# R code to calculate hyperbolic sine of a value # Assigning values to variablesx1 <- pix2 <- pi / 3 # Using sinh() Functionsinh(x1)sinh(x2) |
Output:
[1] 11.54874 [1] 1.249367


