Fortran Wiki cosh

Description

cosh(x) computes the hyperbolic cosine of x.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

x = cosh(x)

Arguments

• x - The type shall be real.

Return value

The return value is of type real and it is positive ($\cosh (x) \geq 0$). The return value is of the same kind as x.

Example

program test_cosh
real(8) :: x = 1.0_8
x = cosh(x)
end program test_cosh