xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CosH()

Calculates the hyperbolic cosine for an angle.

Syntax

CosH( <nRadians> ) --> nHyperbolicCosine

Arguments

<nRadians>
A numeric value specifying the angle value in radians.

Return

The function returns the hyperbolic cosine in the range of plus and minus Infinity().

Info

See also:Cos(), Cot(), DtoR(), RtoD(), SetPrec(), Sin(), Tan()
Category: CT:Math , Mathematical functions , Trigonometric functions , xHarbour extensions
Source:ct\trig.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example display results of CosH(). Note that there is a numeric overflow.

   PROCEDURE Main
      ? Str( CosH( 0.0 ), 18, 15)  // result:  1.000000000000000
      ? Str( CosH( 1.0 ), 18, 15)  // result:  1.543080634815244
      ? Str( CosH( 2.0 ), 18, 15)  // result:  3.762195691083631
      ? Str( CosH( 4.0 ), 18, 15)  // result: 27.308232836016490
      ? Str( CosH( 8.0 ), 18, 15)  // result: ******************
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe