php8.5
Home/ Manual/ math / functions/ cosh

cosh

PHP function Edit on GitHub ✎

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

Hyperbolic cosine

Description

cosh(float $num): float

Returns the hyperbolic cosine of num, defined as (exp($num) + exp(-$num))/2.

Parameters

num

The argument to process

Return Values

The hyperbolic cosine of num

See Also

Source: reference/math/functions/cosh.xml · from the official PHP manual (php/doc-en)