Define - Maple Programming Help

Home : Support : Online Help : Applications and Example Worksheets : Symbolic Calculations : examples/define

Define

With the define command, evaluation and simplification properties for functions and operators can be defined.  Properties are specified by both keywords and by equations that use the syntax of the pattern matcher (patmatch command). The define command then creates a procedure that implements the function and its properties.

Note that properties are used in the order that they are given; therefore, if one pattern is more general than the other, it has to be specified first: for example,  f(x)=x should be defined before $f\left(a\colon\colon \mathrm{algebraic}\right)={g}^{a}.$

 > $\mathrm{restart}$

The syntax for define is described in the help page of define, while the syntax for patterns is described in the help page of patmatch.