convert a piecewise function to a list
convert(piecewise, pwlist, x)
(optional) name; specify variable
A piecewise expression, such as f1cond1f2cond2...` `, is converted into an ordered list f1,t1,f2,t2,...,fn,tn,fn+1 which represents the piecewise-defined function:
Here, t0=−∞ and tn+1=∞ are implicit.
The variable x can be stated as an extra argument to the convert function. If x is not stated then the variable name is deduced if there is exactly one name appearing in the expression.
f ≔ piecewise⁡−1<xandx≤0,x3,0<xandx≤Pi2,sin⁡x,Pi2<x,1+cos⁡x:
g ≔ piecewise⁡x<1,a−x,1≤x,ln⁡x:
Download Help Document
What kind of issue would you like to report? (Optional)