Search w3schools.com:

SHARE THIS PAGE

PHP sinh() Function


PHP Math Reference Complete PHP Math Reference

Definition and Usage

The sinh() function returns the hyperbolic sine of a number (equivalent to (exp(x) - exp(-x)) / 2).

Syntax

sinh(x)

Parameter Description
x Required. A number


Example

In the following example we will 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))
?>

The output of the code above will be:

10.0178749274
-10.0178749274
0
11.5487393573
2.30129890231


PHP Math Reference Complete PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]