$MaxPiecewiseCases

$MaxPiecewiseCases
gives the maximum number of cases to allow in explicit Piecewise objects generated by expanding any single piecewise function.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Floor is not converted to Piecewise because the number of piecewise cases exceeds 100:

In[1]:=
Click for copyable input
Out[1]=

This increases the limit on the number of cases to 200:

In[2]:=
Click for copyable input

Now PiecewiseExpand converts Floor to Piecewise:

In[3]:=
Click for copyable input
Out[3]=

This reverts $MaxPiecewiseCases to the default setting:

In[4]:=
Click for copyable input
New in 5.1
New to Mathematica? Find your learning path »
Have a question? Ask support »