xHarbour Reference Documentation > Function Reference |
Calculates the arc cosine.
ACos( <nRadians> ) --> nArcCosine
The function returns the arc cosine as a numeric value between 0 and Pi().
See also: | ASin(), ATan(), ATn2(), DtoR(), RtoD(), SetPrec(), Sin(), Tan() |
Category: | CT:Math , Mathematical functions , Trigonometric functions |
Source: | ct\trig.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays results of function ACos(). PROCEDURE Main ? Str( ACos( -1.0 ), 18, 15) // result: 3.141592653589794 ? Str( ACos( -0.5 ), 18, 15) // result: 2.094395102393196 ? Str( ACos( 0 ), 18, 15) // result: 1.570796326794897 ? Str( ACos( 0.5 ), 18, 15) // result: 1.047197551196598 ? Str( ACos( 1.0 ), 18, 15) // result: 0.000000000000000 RETURN
http://www.xHarbour.com