| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Calculates the hyperbolic cosine for an angle.
CosH( <nRadians> ) --> nHyperbolicCosine
The function returns the hyperbolic cosine in the range of plus and minus Infinity().
| 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 |
// 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
http://www.xHarbour.com