Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Remrule

Function: remrule (<op>, <rulename>)

Function: remrule (<op>, all) Removes rules defined by `tellsimp` or `tellsimpafter`.

`remrule (<op>, <rulename>)` removes the rule with the name <rulename> from the operator <op>. When <op> is a built-in or user-defined operator (as defined by `infix`, `prefix`, etc.), <op> and <rulename> must be enclosed in double quote marks.

`remrule (<op>, all)` removes all rules for the operator <op>.

See also `remlet`, which removes a rule defined by `let`.

Examples:

```          (%i1) tellsimp (foo (aa, bb), bb - aa);
(%o1)                   [foorule1, false]
(%i2) tellsimpafter (aa + bb, special_add (aa, bb));
(%o2)                   [+rule1, simplus]
(%i3) infix ("@@");
(%o3)                          @@
(%i4) tellsimp (aa @@ bb, bb/aa);
(%o4)                   [@@rule1, false]
(%i5) tellsimpafter (quux (%pi, %e), %pi - %e);
(%o5)                  [quuxrule1, false]
(%i6) tellsimpafter (quux (%e, %pi), %pi + %e);
(%o6)             [quuxrule2, quuxrule1, false]
(%i7) [foo (aa, bb), aa + bb, aa @@ bb, quux (%pi, %e),
quux (%e, %pi)];
bb
(%o7) [bb - aa, special_add(aa, bb), --, %pi - %e, %pi + %e]
aa
(%i8) remrule (foo, foorule1);
(%o8)                          foo
(%i9) remrule ("+", ?\+rule1);
(%o9)                           +
(%i10) remrule ("@@", ?\@\@rule1);
(%o10)                         @@
(%i11) remrule (quux, all);
(%o11)                        quux
(%i12) [foo (aa, bb), aa + bb, aa @@ bb, quux (%pi, %e),
quux (%e, %pi)];
(%o12) [foo(aa, bb), bb + aa, aa @@ bb, quux(%pi, %e),
quux(%e, %pi)]```

```(%o1)                                true
(%i2) ```

### Related Examples

? remrule;

Calculate

##### remrule

? remrule;

Calculate 