Lahey/Fujitsu Fortran

COSH Function

Description

The COSH function returns the hyperbolic cosine of a REAL argument.

Syntax

COSH (x)

Arguments

x is an INTENT(IN) scalar or array of type REAL.

Result

The result is of the same type and kind as x. Its value is a REAL representation of the hyperbolic cosine of x.

Example

real :: x=.5,y(2)=(/1.,1./) write(*,*) cosh(x) ! writes 1.127626 write(*,*) cosh(y) ! writes 1.543081 1.543081