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));
?>
Try it Yourself »
The sinh() function returns the hyperbolic sine of a number, which is equal to (exp(number) - exp(-number))/2).
sinh(
number);
Parameter | Description |
---|---|
number | Required. Specifies a number |
Return Value: | The hyperbolic sine of number |
---|---|
Return Type: | Float |
PHP Version: | 4.1+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!