type/piecewise
determine whether the given expression is a piecewise function
Calling Sequence
Parameters
Description
Examples
type/piecewise(expr, x);
expr
-
any expression
x
(optional) main variable
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.
typepiecewisex<1,a,b,piecewise
true
typepiecewisex<1,a,b,piecewisex
typepiecewisex<1,a,b,piecewisea
false
See Also
piecewise
type/mathfunc
Download Help Document