PHP sinh() Function
Definition and Usage
The sinh() function returns the hyperbolic sine of a number.
Syntax
sinh(x)
Parameter | Description |
---|---|
x | Required. A number. |
Description
Returns x The hyperbolic sine value is defined as (exp(arg) - exp(-arg))/2.
Example
In this example, we will return the hyperbolic sine of different numbers:
<?php echo(sinh(3)); echo(sinh(-3)); echo(sinh(0)); echo(sinh(M_PI)); echo(sinh(M_PI_2)); ?>
Output:
10.0178749274 -10.0178749274 0 11.5487393573 2.30129890231