y | The REAL numerator value for the tangent. |
x | The REAL denominator value for the tangent. |
Return: | ATAN2 returns a single REAL value. |
The ATAN2 function returns the arctangent (inverse) of the calculated tangent, in radians. This is similar to the ATAN function but more accurate and handles the situations where x or y is zero.
Example:
// get the value of tan-1(5.0 / 2.0)
TangentNumerator := 5.0;
TangentDenominator:=2.0;
ArcTangent := ATAN2(TangentNumerator, TangentDenominator);
OUTPUT(ArcTangent); //1.190289949682532