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.
type⁡piecewise[]⁡x<1,a,b,'piecewise'
true
type⁡piecewise⁡x<1,a,b,'piecewise'
type⁡piecewise⁡x<1,a,b,'piecewise'⁡x
type⁡piecewise⁡x<1,a,b,'piecewise'⁡a
false
See Also
piecewise
type/mathfunc
Download Help Document