ITERATE
Bounded fixed-point iteration: evaluates the update expression with the named variable bound, n times (default 20, max 100), stopping early on convergence. The binding lives in a child scope and never leaks.
| Category | Engineering |
| Syntax | ITERATE(varName, init, update, [n]) |
Parameters
| Parameter | Required | Description |
|---|---|---|
varName | Required | Bare name of the iteration variable. |
init | Required | Initial value (a quantity; units carry through). |
update | Required | Expression of varName giving the next value. |
n | Optional | Iteration count (default 20, clamped to 100). |
Example
ITERATE(varName, init, update, n)
Auto-generated from the EngCanvas function registry.