Home >>PHP Math Functions >PHP sinh() Function

PHP sinh() Function

PHP sinh() Function

PHP sinh() function is used to find the hyperbolic sine of the given input angle value. The hyperbolic sine of any argument X is equal to “(exp(X) – exp(-X))/2”. Here exp() is the exponential function which returns e raised to the power of argument passed to it. It accepts only a single parameter $number that is the number whose hyperbolic sine value is to be found. Its value must be in radians.

Syntax:

  sinh($number);

Parameter Values

Parameter Description
number This is a required parameter. This parameter defines the number passed as argument.

Here is an example of sinh() function in PHP:

<html>
<body>

<?php

echo sinh(0)."<br>";
echo sinh(1)."<br>";
echo sinh(1.5)."<br>";
echo sinh(2)."<br>";

?>

</body>
</html>
Output:
0
1.1752011936438
2.1292794550948
3.626860407847

Here is another example of sinh() function in PHP:

<html>
<body>

<?php

echo sinh(0)."<br>";
echo sinh(pi()/2)."<br>";
echo sinh(pi()/4)."<br>";
echo sinh(pi()/6)."<br>";
echo sinh((3*M_PI)/2)."<br>";

?>

</body>
</html>
Output:
0
2.3012989023073
0.86867096148601
0.54785347388804
55.654397599418

No Sidebar ads