Previous Up Next

10.1.4  Automatic simplification

The autosimplify command determines how much simplification Xcas will do automatically when you enter an expression. Note that autosimplify only works with Xcas, it does not work with icas or any other frontend.

By default, Xcas will apply the regroup command (see Section 10.1.1) to your input, but the autosimplify command can change this to applying another rewriting command to your input, such as simplify (see Section 10.1.3), factor (see Section 9.1.10), or even nop for no simplification. With no arguments, autosimplify will return the current rewriting command. Otherwise:

Examples

autosimplify(nop)

then:

1+x^2-2
     
1+x2−2           
autosimplify(simplify)

then:

1+x^2-2
     
x2−1           
autosimplify(factor)

then:

1+x^2-2
     

x−1

x+1
          
autosimplify(regroup)

then:

1+x^2-2
     
x2−1           

Previous Up Next