D Summary of Maple Commands
Constructs a function named f, whose rule is governed by the given expression.
> f:=x->xˆ2 -x;
f := x→ x2 − x > f(3);
Functions of more than one variable are similarly defined.
> f:=(x1,x2)-> x1ˆ2 -x2ˆ2;
f := (x1, x2)→ x21 − x22 > f(2,1);
Piecewise-defined functions can be entered via the piecewise command, whose general form is
where each condition corresponds to the expression immediately following it. The conditions are expressed as inequalities and Boolean combinations thereof.