isdifferentiable
test for piecewise functions
Calling Sequence
Parameters
Description
Examples
isdifferentiable(expr, var, class)
isdifferentiable(expr, var, class, varparam)
expr
-
expression
var
variable name
class
number n telling if the expr is in class Cn
varparam
(optional) name
isdifferentiable determines if the expression expr containing piecewise or piecewise functions such as abs, signum, max, ..., is of class C^ class. It returns either true or false.
The optional argument varparam can be passed to the function and in case expr is not of class Cn, varparam contains information of which Cn class the function is, and a list of points where we have discontinuities in the n+1-th derivative.
piecewise⁡x<−1,−x,x<1,x⁢x,x
−xx<−1x2x<1xotherwise
isdifferentiable⁡,x,1
false
isdifferentiable⁡,x,2,la
la
0,−1,1
isdifferentiable⁡abs⁡x,x,2
isdifferentiable⁡abs⁡x,x,2,la
0,0
See Also
convert/piecewise
dsolve/piecewise
piecewise
simplify/piecewise
Download Help Document