PHP sinh() function
Complete PHP Math Reference
Definition and Usage
The sinh() function returns the hyperbolic sine of a number (equivalent to
(exp(x) - exp(-x)) / 2).
Syntax
Parameter |
Description |
x |
Required. A number |
Example
In the following example we will return the hyperbolic sine of different numbers:
<?php
echo(sinh(3) . "<br />");
echo(sinh(-3) . "<br />");
echo(sinh(0) . "<br />");
echo(sinh(M_PI) . "<br />");
echo(sinh(M_PI_2))
?>
|
The output of the code above will be:
10.0178749274
-10.0178749274
0
11.5487393573
2.30129890231
|
Complete PHP Math Reference
|
|
|