EXP
All functions > MATH > EXP
Returns e raised to the power of the given number (exponential function).
Signatures
Returns: Result of e^exponent
EXP(exponent: T) → DOUBLE sql
| Parameter | Type | Required | Description |
|---|---|---|---|
exponent | T | Yes | The power to raise e to |
Notes
- e^x is the natural exponential function
EXP(0) = 1EXP(1) = e ≈ 2.718281828459045- Returns NULL if the input is NULL
- Inverse of the natural logarithm:
EXP(LN(x)) = x - Can result in very large numbers for large exponents
Examples
FeatureQL
SELECT
f1 := EXP(0.0e0), -- e^0 equals 1
f2 := EXP(1.0e0), -- e^1 equals e
f3 := EXP(2.0e0), -- e squared
f4 := EXP(-1.0e0), -- Negative exponent
f5 := EXP(0.5e0) -- Square root of e
;Result
| f1 VARCHAR | f2 VARCHAR | f3 VARCHAR | f4 VARCHAR | f5 VARCHAR |
|---|---|---|---|---|
| 1.0 | 2.718281828459045 | 7.38905609893065 | 0.36787944117144233 | 1.6487212707001282 |
On this page