User Guide
Table 8.1: Default Clause Values
Default ValueClause
1from initial
1by increment
infinity (∞)to final
Examples
The following loop returns the square root of the integers 1 to 5 (inclusive).
for n to 5 do
evalf(sqrt(n));
end do;
>
When the value of the counter variable n is strictly greater than 5, Maple
exits the loop.
n;>
The previous loop is equivalent to the following for/from statement.
8.2 Flow Control • 327