Fortran Wiki
cosh

Description

cosh(x) computes the hyperbolic cosine of x.

Standard

FORTRAN 77 and later, for a complex argument Fortran 2008 or later

Class

Elemental function

Syntax

x = cosh(x)

Arguments

  • x - The type shall be real or complex.

Return value

The return value has same type and kind as x. If x is complex, the imaginary part of the result is in radians. If x is real, the return value has a lower bound of one, cosh(x)1\cosh(x) \geq 1.

Example

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

See also

Inverse function: acosh

category: intrinsics