COSH()

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 )

Compliance

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

Platforms

All

Files

Source is trig.c, library is libct.

Seealso

SIN(), COS(), TAN(), COT(), ASIN(), ACOS(), ATAN(), ATN2(), SINH(), TANH(), RTOD(), DTOR(), PI()

2 responses to “COSH()

  1. Pingback: Harbour All Functions – C | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.