sinh() function in PHP

PHPProgrammingServer Side Programming

The sinh() function Returns the hyperbolic sine of a number equivalent to.

(exp(num) - exp(-num))/2)

Syntax

sinh(num)

Parameters

  • num − The number for which you want to Return the hyperbolic sine. A value in radians.

Return

The sinh() function Returns the hyperbolic sine of a number.

Example

 Live Demo

<?php
   echo(sinh(0) . "<br>");
   echo(sinh(1) );
?>

Output

0<br>1.1752011936438

Example

Let us see another example −

 Live Demo

<?php
   echo(sinh(M_PI) . "<br>");
   echo(sinh(M_PI_2));
?>

Output

11.548739357258<br>2.3012989023073
raja
Published on 09-Nov-2018 13:03:00

Advertisements