Current Location: Home> Function Categories> cosh

cosh

Hyperbolic cosine
Name:cosh
Category:math
Programming Language:php
One-line Description:Hyperbolic cosine.

Definition and usage

cosh() function returns the hyperbolic cosine of a number.

Example

In this example, we will return hyperbolic cosines of different numbers:

 <?php
echo ( cosh ( 3 ) ;
echo ( cosh ( - 3 ) ;
echo ( cosh ( 0 ) ;
echo ( cosh ( M_PI ) ;
echo ( cosh ( 2 * M_PI ) ) ;
?>

Try it yourself

grammar

 cosh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic cosine value of x , defined as (exp(arg) + exp(-arg))/2 .