Reference
math
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.
| Name / Signature | Description | Returns |
|---|---|---|
| alerta.math.rphimath.rphi | The reciprocal of the golden ratio φ, approximately 0.618. Equivalent to 1/φ or (√5 − 1) / 2. | float |
| alerta.math.pimath.pi → const float | Mathematical constant available without calling a function. Use math.pi as a value, without parentheses. | const float |
| alerta.math.emath.e → const float | Mathematical constant available without calling a function. Use math.e as a value, without parentheses. | const float |
| alerta.math.phimath.phi → const float | Mathematical constant available without calling a function. Use math.phi as a value, without parentheses. | const float |