Z.u.L. > Documentation > Context Help

Iterate a Macro

Macros can be iterated, if they depend only on one point and produce at least one target point. In this case, the macro will repeat itself several times, setting the recently produced target point as parameter point in each step. The number of iterations can be set by the user. Instead of a point, any other parameter type can be used, if it produces a compatible target type.

If a macro needs more parameters than just one point, all other parameters need to be fixed.

A short example could the study of an iteration from point to point. Make sure, the iteration depends only on the previous point, and fix all other necessary parameters with "=...prompt...". Another example is a set of functions depending on each other recursively. If you want to generate a set of functions depending on 1,2,3,..., create an expression depending on a previous expression plus 1 in the macro.

Related topics: Macro Definition, Running a Macro

Next topic: Localized Help