Skip to main content

ATAN

Calculates the arc tangent (inverse tangent) of a number, which is the angle in radians whose tangent is the specified number.

See also:
[SELECT]


Syntax​

SELECT ATAN(value) FROM <multipartIdentifier>;

Arguments​

value
A numeric expression for which the arc tangent is to be calculated.

Return Value(s)​

Returns the arc tangent of the specified value in radians.


Examples​

Calculate the arc tangent of 1​

SELECT ATAN(1) AS arc_tangent_value;

This query returns π/4 or approximately 0.785, as the arc tangent of 1 is π/4 radians.

Calculate the arc tangent of 0​

SELECT ATAN(0) AS arc_tangent_value;

This query calculates the arc tangent of 0, resulting in 0, since the tangent of 0 radians is 0.