Home >>PHP Math Functions >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 | 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>
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>