Jump to: navigation, search

Php cosh

From w3cyberlearnings

Contents

PHP function cosh

This function returns the hyperbolic cosine of X number, and it is equal to (exp(X)+exp(-X))/2.

Syntax cosh

X is a number.

cosh(X);

Example 1

<?php

echo cosh(6);
echo "<br/>";
echo cosh(-6);
echo "<br/>";
echo cosh(0.5);
echo "<br/>";
echo cosh(-0.5);
?>

Output

201.71563612246
201.71563612246
1.1276259652064
1.1276259652064

Related Links


Navigation
Web
SQL
MISC
References