Returns hyperbolic cosines of distinct numbers:
<?phpecho(cosh(3) . "<br>");echo(cosh(-3) . "<br>");echo(cosh(0) . "<br>");echo(cosh(M_PI ) . "<br>");echo(cosh(2*M_PI));?>The cosh() function returns the hyperbolic cosine of a number, defined as ((exp(number) + exp(-number))/2).
cosh( number );
parameter | describe |
---|---|
number | Required. Specify a number. |
Return value: | The hyperbolic cosine of number . |
---|---|
Return type: | Float |
PHP version: | 4.1+ |