nullary - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Nullary Operators

Description

 • The nullary operators in Maple are:

 % last expression %% second last expression %%% third last expression

Examples

 > $1;$$2;$$3$
 ${1}$
 ${2}$
 ${3}$ (1)
 > $%,\mathrm{%%},\mathrm{%%%}$
 ${3}{,}{2}{,}{1}$ (2)
 > F := proc( n ) 1; 2; to n do % + % * % / %% end do end proc;
 ${F}{≔}{\mathbf{proc}}\left({n}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{1}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{2}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{to}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{n}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{do}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{%}{+}{%}{*}{%}{/}{\mathrm{%%}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end do}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end proc}}$ (3)
 > $F\left(8\right)$
 ${3628800}$ (4)

 See Also