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



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/php/function-reference/sinh.php