ATAN2 Function


Returns the arc tangent of two numeric variables

Category: Trigonometric

Syntax

ATAN2 ( argument-1 , argument-2 )

Arguments

argument-1

  • is numeric.

argument-2

  • is numeric.

Details

The ATAN2 function returns the arc tangent (inverse tangent) of two numeric variables. The result of this function is similar to the result of calculating the arc tangent of argument-1 / argument-2 , except that the signs of both arguments are used to determine the quadrant of the result. ATAN2 returns the result in radians, which is a value between - and . If either of the arguments in ATAN2 is missing, then ATAN2 returns a missing value.

Comparisons

The ATAN2 function is similar to the ATAN function except that ATAN calculates the arc tangent of the angle from the value of one argument rather than from two arguments.

Examples

SAS statements

Results

a=atan2(-1, 0.5);

-1.107148718

b=atan2(6,8);

0.6435011088

c=atan2(5,-3);

2.1112158271

See Also

Functions:

  • 'ATAN Function' on page 320




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net