Define a commutative and associative operation.
You can use define to program recursive procedures.
An example of programming a one-line GCD.
The identity property can be used to define a monoid operation.
A simple integrator can be defined as follows.
This definition works for any variable.
Use definemore to improve the integrator.
Note: If INT does not recognize the pattern, it returns unevaluated.
The following example defined the procedure P by specifying its derivative.
If the derivative is specified for a procedure defined using the linear property, then Maple can take advantage of this.
Use undefine to completely remove the definition of a procedure defined using the define command.