Silverfrost Logo About Us | Contact Us
 

ATAN2

Platform

x64, Win32, .NET

Purpose

To get the Arctangent (inverse tangent) from the arguments.

Class

Elemental function.

Syntax

REAL FUNCTION ATAN2(Y,X)
REAL X, Y

Description

(X, Y) are cartesian coordinates and the result is the value of Arctangent(Y/X). If Y>0, the result is positive. If Y=0, the result is zero if X>0 and p if X<0. If Y<0, the result is negative. If X=0, the absolute value of the result is p/2.

The arguments must not both have the value zero.

Return value

The result is given in radians in the range - p < result < p .

 

 

Copyright © 1999-2017 Silverfrost Limited