Categories:

Numeric functions (Trigonometric)

ATAN

Computes the inverse tangent (arc tangent) of its argument; the result is a number in the interval [-pi, pi].

Syntax

ATAN( <input_expr> )
Copy

Arguments

input_expr

The value or expression to operate on. The data type must be FLOAT or DECFLOAT.

Returns

If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.

Returns the arc tangent in radians (not degrees) in the range [-pi, pi].

Examples

SELECT ATAN(1);

--------------+
   ATAN(1)    |
--------------+
 0.7853981634 |
--------------+
Copy