The sinh() function returns the hyperbolic sine of a number, which is equal to (exp(number) - exp(-number))/2).
PHP sinh() Function has the following syntax.
sinh(number);
Parameter | Description |
---|---|
number | Required. Specifies a number |
Item | Value |
---|---|
Return Value | The hyperbolic sine of number |
Return Type | Float |
Return the hyperbolic sine of different numbers:
<?php
echo(sinh(3) . "\n");
echo(sinh(-3) . "\n");
echo(sinh(0) . "\n");
echo(sinh(M_PI) . "\n");
echo(sinh(M_PI_2));
?>
The code above generates the following result.