Skip to content

ATQ

Arc Tangent of a Quotient

This numeric function returns the arc tangent of a quotient consisting of two numeric expressions representing angles in radians.

ATQ (numeric-value1,numeric-value2 [,ERR=line-ref|,ERC=error-code])
numeric-value1,2
are numbers from +/-.99999999999999E-57 through +/-.99999999999999E+58.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function returns a value that ranges from -3.14 through 3.14 (-Pi to +Pi).

ATQ (0,-1)

The result is 0.

ATQ (2,-4)

The result is 2.68.

ATQ (6,6)

The result is 0.79.

ATQ (0,2)

The result is 0.

These examples assume PRECISION 2.

ATN and TAN functions

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF