Mathematical Constants
HelixQL provides built-in mathematical constants PI and E for use in calculations. These constants are provided as functions that return their respective values with high precision.Available Constants
PI - Pi Constant
E - Euler’s Number
Example 1: Circle calculations with PI
Calculate circle properties using the PI constant:Example 2: Exponential growth with E
Model exponential growth and decay using Euler’s number:Common Use Cases
Degree-Radian Conversion
Use PI for converting between degrees and radians:Circular Motion
Calculate properties of circular motion:Compound Interest
Use E for continuous compound interest calculations:Natural Decay
Model radioactive decay or other natural decay processes:Precision
Both PI() and E() return high-precision values suitable for scientific and engineering calculations:- PI() returns π to approximately 20 decimal places
- E() returns e to approximately 20 decimal places
The constants are implemented as functions rather than literals to maintain consistency with HelixQL’s function-based syntax.
Use in Complex Formulas
Constants are often used in complex mathematical formulas:Related Topics
Trigonometric Functions
SIN, COS, TAN, ASIN, ACOS, ATAN, ATAN2
Unary Math Functions
SQRT, ABS, LN, LOG10, EXP, CEIL, FLOOR, ROUND
Arithmetic Functions
ADD, SUB, MUL, DIV, POW, MOD
Math Overview
Overview of all math functions