invalid simplification command - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : invalid simplification command

Error, (in simplify/do) invalid simplification command

 

Description

Examples

Description

The simplify command is used to apply simplification rules to an expression.

 

The Error, (in simplify/do) invalid simplification command message occurs when arguments passed to simplify do not comply with a valid calling sequence.

Examples

Example 1

In this instance, the arguments do not match any of the valid calling sequences of simplify.

simplifyx2,x=y

Error, (in simplify/do) invalid simplification command


Solution 1:

Enclose the equation x=y in a set.

simplifyx2,x=y

y2

(2.1)

Solution 2:

For a direct substitution, you can also use the eval command.

evalx2,x=y

y2

(2.2)

 

Example 2

Here, eqn provides a side relation that should be used when simplifying the expression expr. The side relations passed to simplify must be a set or list of equations. For more information on side relations, see simplify/siderels.

eqnsinx2+cosx2=1

eqn:=sinx2+cosx2=1

(2.3)

exprsinx311 sinx2cosx+3 cosx3sinxcosx+2

expr:=sinx311sinx2cosx+3cosx3sinxcosx+2

(2.4)

simplifyexpr,eqn;

Error, (in simplify/do) invalid simplification command


Solution:
Enclose the equation in a set.

eqnsinx2+cosx2=1

eqn:=sinx2+cosx2=1

(2.5)

exprsinx311 sinx2cosx+3 cosx3sinxcosx+2

expr:=sinx311sinx2cosx+3cosx3sinxcosx+2

(2.6)

simplifyexpr,eqn;

2sinxcosx+14cosx311cosx+sinxsinxcosx2

(2.7)

See Also

eval

simplify

simplify/siderels