Automatic simplification: autosimplify

### 5.13.17 Automatic simplification: autosimplify

The autosimplify command takes a single argument; a command that will be used to rewrite the results in Xcas, such as simplify, factor, regroup, or for no simplification, nop. When Xcas starts, the autosimplify command is regroup.

To change the simplification mode during a session, the autosimplify command should be on its own line.
Input:

autosimplify(nop)

then:

1 + x^2 - 2

Output:

1+x^2-2

Input:

autosimplify(simplify)

then:

1 + x^2 - 2

Output:

x^2 - 1

Input:

autosimplify(factor)

then:

1 + x^2 - 2

Output:

(x-1)*(x+1)

Input:

autosimplify(regroup)

then:

1 + x^2 - 2

Output:

x^2 - 1