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

Online Help

All Products    Maple    MapleSim


type/piecewise

determine whether the given expression is a piecewise function

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type/piecewise(expr, x);

Parameters

expr

-

any expression

x

-

(optional) main variable

Description

• 

The call type(expr, piecewise) returns true if expr is a piecewise function.

• 

The call type(expr, piecewise(x)) checks, in addition, that the argument that x appears at least in one of the piecewise conditions involved in expr.

Examples

typepiecewisex<1&comma;a&comma;b&comma;piecewise

true

(1)

typepiecewisex<1&comma;a&comma;b&comma;piecewise

true

(2)

typepiecewisex<1&comma;a&comma;b&comma;piecewisex

true

(3)

typepiecewisex<1&comma;a&comma;b&comma;piecewisea

false

(4)

See Also

piecewise

type/mathfunc