piecewise - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


simplify/piecewise

simplify piecewise expressions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

simplify(expr)

simplify(expr, piecewise)

`simplify/piecewise`(expr, var)

Parameters

expr

-

any expression

piecewise

-

(optional) literal name; piecewise

var

-

variable

Description

• 

The simplify/piecewise command can simplify expressions with piecewise functions of one variable. If the expression contains more than one variable use the convert(expr, piecewise, var) calling sequence or the long form `simplify/piecewise`(expr, var).

Examples

Aconvertabsx,piecewise

Axx<0x0x

(1)

simplifyAA

x2

(2)

Bpiecewisex24<0&comma;x&comma;xx

Bxx2<4x2otherwise

(3)

simplifyBpiecewise3<x&comma;0&comma;1

x21x−2x1x<2x21x3x23<x

(4)

`simplify/piecewise`piecewise0<x&comma;a&comma;b2&comma;x

bx0a0<x2

(5)

See Also

convert[piecewise]

piecewise