ATAN()
All functions > MATH > ATAN()
Returns the arctangent (inverse tangent) of a number, in radians.
Signatures
Arctangent
Returns: Angle in radians, in (-π/2, π/2)
ATAN(number: T) → DOUBLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
number | T | Yes | Any floating-point number |
With:
T: Floating-point type (FLOAT, DOUBLE)
Signature notes:
- Accepts any real number
ATAN(0.0) = 0,ATAN(1.0) = π/4,ATAN(-1.0) = -π/4- As the input approaches ±∞, the result approaches ±π/2
- Returns NULL if the input is NULL
Examples
FeatureQL
SELECT
f1 := ATAN(0.0E0), -- atan(0) = 0
f2 := ATAN(1.0E0), -- atan(1) = π/4
f3 := ATAN(-1.0E0), -- atan(-1) = -π/4
f4 := ATAN(1.732050808E0) -- atan(√3) = π/3
;Result
| f1 VARCHAR | f2 VARCHAR | f3 VARCHAR | f4 VARCHAR |
|---|---|---|---|
| 0.0 | 0.7853981633974483 | -0.7853981633974483 | 1.0471975513043785 |
On this page