How to use cosh in PHP

This article describe about cosh() Function in PHP.
  • 1208

cosh() Function

The hyperbolic cosine of number return by the cosh() function.

Syntax

cosh(x)

 

Parameter Description
x Required a number

 

Example

 

<html>
<body>
<?php
echo(cosh(5) . "<br />");
echo(cosh(-5) . "<br />");
echo(cosh(0) . "<br />");
echo(cosh(M_PI) . "<br />");
echo(cosh(3*M_PI))
?>
</body>
</html>

 

Output


coshphp.jpg

You may also want to read these related articles Click here

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.