PHP sinh () function
Examples
Returns 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));
?>
echo(sinh(3) . "<br>");
echo(sinh(-3) . "<br>");
echo(sinh(0) . "<br>");
echo(sinh(M_PI) . "<br>");
echo(sinh(M_PI_2));
?>
Running instance »
Definition and Usage
sinh () function returns the hyperbolic sine of a number, defined as (exp (number) - exp (-number)) / 2).
grammar
sinh( number );
参数 | 描述 |
---|---|
number | 必需。规定一个数。 |
technical details
return value: | number hyperbolic sine. |
---|---|
Return type: | Float |
PHP version: | 4.1+ |
PHP Math Reference