Skip to main content

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.

CategoryEngineering
SyntaxITERATE(varName, init, update, [n])

Parameters

ParameterRequiredDescription
varNameRequiredBare name of the iteration variable.
initRequiredInitial value (a quantity; units carry through).
updateRequiredExpression of varName giving the next value.
nOptionalIteration count (default 20, clamped to 100).

Example

ITERATE(varName, init, update, n)

Auto-generated from the EngCanvas function registry.