sinh() function in PHP


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

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 27-Dec-2019

44 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements