applyrule - applying rules
|
Calling Sequence
|
|
applyrule(rule, expr)
applyrule([rule1, rule2, ...], expr)
|
|
Parameters
|
|
expr
|
-
|
expression the rules are applied to
|
rule
|
-
|
rule
|
|
|
|
|
Description
|
|
•
|
With applyrule a rule or a list of rules can be applied to a given expression. applyrule computes the fix point, it applies the rules until no rule can be applied any more. It is more powerful than the command subs, but does not do mathematical transformations as algsubs does.
|
•
|
Rules are given as equations or in the syntax of the pattern matcher with parameters. See patmatch.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
|
|
Download Help Document
Was this information helpful?