English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Thiscosh()
The function returns the hyperbolic cosine of a number. The return value is a floating-point number.
cosh(num)
num-a number specified in radians
Thiscosh()
The function returns the hyperbolic cosine of a number. The return value is a floating-point number.
<?php echo(cosh(1) . "<br>"); echo(cosh(-1)); ?>
Output Result
1.5430806348152<br>1.5430806348152
Let's look at another example-
<?php echo(cosh(0)); ?>
Output Result
1
<?php echo(cosh(M_PI) . "<br>"); echo(cosh(2*M_PI)); ?>
Output Result
11.591953275522<br>267.74676148375