xHarbour Reference Documentation > Function Reference |
Calculates the arc tangent.
ATan( <nRadians> ) --> nArcTangent
The function returns the arc tangent as a numeric value between plus/minus Pi()/2.
See also: | ACos(), ASin(), 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 ATan(). PROCEDURE Main ? Str( ATan( -1.0 ), 18, 15) // result: -0.785398163397449 ? Str( ATan( -0.5 ), 18, 15) // result: -0.463647609000806 ? Str( ATan( 0 ), 18, 15) // result: 0.000000000000000 ? Str( ATan( 0.5 ), 18, 15) // result: 0.463647609000806 ? Str( ATan( 1.0 ), 18, 15) // result: 0.785398163397449 RETURN
http://www.xHarbour.com