>
|
|
>
|
|
Define a commutative and associative operation.
>
|
|
>
|
|
>
|
|
You can use define to program recursive procedures.
>
|
|
>
|
|
>
|
|
| (9) |
>
|
|
An example of programming a one-line GCD.
>
|
|
The identity property can be used to define a monoid operation.
>
|
|
| (14) |
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.
>
|
|
| (23) |
The following example defined the procedure P by specifying its derivative.
>
|
|
| (25) |
If the derivative is specified for a procedure defined using the linear property, then Maple can take advantage of this.
>
|
|
| (31) |
Use undefine to completely remove the definition of a procedure defined using the define command.
| (34) |