sinh()

Alisha-0704's avatar
Published Jun 20, 2023
Contribute to Docs

The sinh() function is used to calculate the hyperbolic sine of a given number.

Syntax

sinh(number)

The sinh() function takes one parameter, number, which can be either an integer or a float. It returns the hyperbolic sine of the number as a float value.

Example

The example below illustrates a basic implementation of the function:

<?php
echo sinh(2.5);
?>

The example will result in the following output:

6.0502033806203

Codebyte Example

The codebyte example below demonstrates the usage of the sinh() function with a negative number:

Code
Output
Loading...

Note: The sinh() function is the inverse of the asinh() function.

All contributors

Contribute to Docs

Learn PHP on Codecademy