Assumptions can be given both as an argument and as an option value:
The default value of
Assumptions option is
$Assumptions:
When assumptions are given as an argument,
$Assumptions is used as well:
Specifying assumptions as an option value prevents using
$Assumptions:
The
Method option allows local setting of system options related to piecewise functions:
With the default condition simplifier, some conditions may not be simplified:
This uses
Reduce to simplify conditions:
By default,
PiecewiseExpand uses
Together to simplify values:
Trigonometric identities are not recognized:
This uses
Simplify to simplify values:
By default, conditions produced by
PiecewiseExpand are not disjoint and cannot be reordered:
This makes the conditions disjoint:
By default, all special piecewise functions are converted to
Piecewise:
This converts
If and
UnitStep, but not
Max:
By default, explicitly Boolean valued piecewise functions are given as Boolean expressions:
With
False, the expression is represented using
Piecewise:
With
True, all values are assumed to be Boolean:
Simplification of a piecewise function can take a long time:
If neither of the cases can be eliminated, checking this may still take a long time:
This restricts the time used for a single condition check; the result may be less simplified: