$MaxPiecewiseCases
gives the maximum number of cases to allow in explicit Piecewise objects generated by expanding any single piecewise function.
Details
- The default value of $MaxPiecewiseCases is 100.
- $MaxPiecewiseCases is used not only in PiecewiseExpand, but also such functions as Integrate, Reduce, and FunctionExpand.
Examples
Basic Examples (1)
Floor is not converted to Piecewise because the number of piecewise cases exceeds 100:
This increases the limit on the number of cases to 200:
Now PiecewiseExpand converts Floor to Piecewise:
This reverts $MaxPiecewiseCases to the default setting:
Text
Wolfram Research (2004), $MaxPiecewiseCases, Wolfram Language function, https://reference.wolfram.com/language/ref/$MaxPiecewiseCases.html.
CMS
Wolfram Language. 2004. "$MaxPiecewiseCases." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$MaxPiecewiseCases.html.
APA
Wolfram Language. (2004). $MaxPiecewiseCases. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$MaxPiecewiseCases.html