# exp ## Category Math ## Arity **Unary** — `exp `. ``` exp ``` ## Description Returns e (Euler's number, ~2.71828) raised to the given power. This is the **natural exponential function**. `exp x` = e^x. Auto-unwraps `shared` values. ## How It Works Calls `Math.Exp(double)`. The inverse of [log](log.md). ## Usage ```sqf exp 0; // 1 exp 1; // 2.71828... exp 2; // 7.389... // Compound continuous growth _growth = _principal * exp (_rate * _time); // Logistic / sigmoid _sigmoid = 1 / (1 + exp (-_x)); // Softmax helper _sumExp = 0; { _sumExp = _sumExp + exp _x } forEach _values; ``` ## Thread Safety ReadOnly — pure computation. Safe from any scheduler. ## See Also - [log](log.md) — natural logarithm (inverse) - [^](pow-operator.md) — general power - [pow](pow.md) — power command form