w3resource

PHP: sinh() function

Description

The sinh() functions is used to get the hyperbolic sine of a number.

Version

(PHP 4 and above)

Syntax

sinh(num)

Parameter

Name Description Required /
Optional
Type
num A number. Required Float

Return value

The hyperbolic sine of num.

Value Type: Float.

Pictorial Presentation

php-math-abc()

Example:

<?php
echo(sinh(4) . '<br>');
echo(sinh(-4) . '<br>');
echo(sinh(0) . '<br>');
echo(sinh(M_PI) . "<br>");
echo(sinh(M_PI_2));
?>

Output:

27.289917197128
-27.289917197128
0
11.548739357258
2.3012989023073

View the example in the browser

See also

PHP Function Reference

Previous: sin
Next: sqrt



Follow us on Facebook and Twitter for latest update.