Nullary Operators - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Operations : Operators : operators/nullary

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{%}}{+}{\mathrm{%}}{*}{\mathrm{%}}{/}{\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

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam