ATAN
All functions > MATH > ATAN
Returns the arctangent (inverse tangent) of a number in radians.
Signatures
Returns: Arctangent in radians (between -π/2 and π/2)
ATAN(number: T) → DOUBLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
number | T | Yes | Any real number |
Notes
- Accepts any real number as input
- Returns values in the range (-π/2, π/2) radians
ATAN(0) = 0,ATAN(1) = π/4,ATAN(-1) = -π/4- As input approaches infinity, result approaches π/2
- Returns NULL if input is NULL
- Inverse of TAN function:
ATAN(TAN(x)) = xfor x in (-π/2, π/2)
Examples
FeatureQL
SELECT
f1 := ATAN(0.0e0), -- Arctangent of 0
f2 := ATAN(1.0e0), -- Arctangent of 1 (45 degrees)
f3 := ATAN(-1.0e0), -- Arctangent of -1
f4 := ATAN(1.732050808e0) -- Arctangent of sqrt(3)
;Result
| f1 VARCHAR | f2 VARCHAR | f3 VARCHAR | f4 VARCHAR |
|---|---|---|---|
| 0.0 | 0.7853981633974483 | -0.7853981633974483 | 1.0471975513043785 |
On this page