define examples - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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 faalgebraic=ga.

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.

 

Return to Example Worksheets Index