pwlist - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


convert/pwlist

convert a piecewise function to a list

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(piecewise, pwlist, x)

Parameters

piecewise

-

piecewise expression

pwlist

-

literal name

x

-

(optional) name; specify variable

Description

• 

A piecewise expression, such as f1cond1f2cond2...` `, is converted into an ordered list f1,t1,f2,t2,...,fn,tn,fn+1 which represents the piecewise-defined function:

fi⁢when⁢ti−1<x<ti,i=1,2,…,n+1&period;

  

Here, t0=−∞ and tn+1=∞ are implicit.

• 

The variable x can be stated as an extra argument to the convert function.  If x is not stated then the variable name is deduced if there is exactly one name appearing in the expression.

Examples

> 

f≔piecewise⁡−1<xandx≤0&comma;x3&comma;0<xandx≤π2&comma;sin⁡x&comma;π2<x&comma;1+cos⁡x&colon;

> 

convert⁡f&comma;pwlist&comma;x

0&comma;−1&comma;x3&comma;0&comma;sin⁡x&comma;π2&comma;1+cos⁡x

(1)
> 

g≔piecewise⁡x<1&comma;a−x&comma;1≤x&comma;ln⁡x&colon;

> 

convert⁡g&comma;pwlist&comma;x

a−x&comma;1&comma;ln⁡x

(2)

See Also

convert

convert/piecewise

piecewise