Iterating expressions

You can use MathMate's Calculator mode to iterate expressions as functions of one variable, i.e. calculate
f (x),  f (f (x)),  f (f (f (x))),
etc.

To do so, use the metavariable X as the iteration variable. X is automatically assigned the value of the last computed expression and therefore can be used for iterations. To iterate an expression containing X, just click Start or press Enter the desired number of times. You are responsible for keeping track of the number of iterations yourself.

See also: