Simplify

SymPy, WMA


Simplify[expr]

simplifies expr.

Simplify[expr, assump]

simplifies expr assuming assump instead of $Assumptions.

Simplify over conditional expressions uses $Assumptions, or assump
to evaluate the condition:

The assump option override $Assumption:

On the other hand, Assumptions option does not override $Assumptions, but add to them:

Passing both options overwrites $Assumptions with the union of assump the option

The option ComplexityFunction allows to control the way in which the evaluator decides if one expression is simpler than another. For example, by default, Simplify tries to avoid expressions involving numbers with many digits:

This behaviour can be modified by setting LeafCount as the ComplexityFunction:

PowerExpand
Together