COSH()

Hyperbolic Cosine of the argument

Syntax

COSH (nArea) -> nHyperbolicCosine

Arguments

<nArea> the size of the area (see below)

Returns

<nHyperbolicCosine> the hyperbolic cosine of <nArea>

Description

The function COSH() calculates the hyperbolic cosine of the argument. In analytical mathematics it is defined as 1/2*(exp(nArea)+exp(-nArea)). A common geometric interpretation of the COSH() function is the maximum x value of the points in the area with the given size <nArea>, that is bound by the x axis, a straight line through the point of origin (this one is fixed by the area) and the hyperbola x^2-y^2=1.
Examples
      ? cosh (0.0) --> 1.0
      ? cosh (1.0) --> 1.5430...
Tests
      cosh (0.0) == 1.0
      cosh (-0.5) == cosh(0.5)
Status

Ready

Compliance

COSH() is new in Harbours CT3's library.

Platforms

All

Files

Source is trig.c, library is libct.

See Also