PiecewiseExpand

PiecewiseExpand[expr]
expands nested piecewise functions in expr to give a single piecewise function.

PiecewiseExpand[expr,assum]
expands piecewise functions using assumptions.

PiecewiseExpand[expr,assum,dom]
does the expansion over the domain dom.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Expand a nested piecewise expression to a single piecewise function:

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

Convert a composition of special piecewise functions to a single Piecewise object:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
Introduced in 2004
(5.1)