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

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:

fiwhenti1<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

fpiecewise1<xandx0&comma;x3&comma;0<xandxπ2&comma;sinx&comma;π2<x&comma;1+cosx&colon;

convertf&comma;pwlist&comma;x

0&comma;−1&comma;x3&comma;0&comma;sinx&comma;π2&comma;1+cosx

(1)

gpiecewisex<1&comma;ax&comma;1x&comma;lnx&colon;

convertg&comma;pwlist&comma;x

ax&comma;1&comma;lnx

(2)

See Also

convert

convert/piecewise

piecewise