answered 12 years ago
The following works as expected:
f1(x)=0 f2(x)=exp(-1/(x^2)) f=Piecewise([[(-10,0),f1],[(0,10),f2]]) h(x)=x-2 c = compose(f, h) plot(c, -8, 12)