Ask Your Question

rbeezer's profile - activity

2013-02-20 07:48:15 -0600 received badge  Good Answer (source)
2012-10-22 09:52:01 -0600 received badge  Nice Answer (source)
2012-10-17 02:07:19 -0600 received badge  Teacher (source)
2012-10-17 02:07:19 -0600 received badge  Necromancer (source)
2012-10-16 16:49:41 -0600 answered a question shift picewise functions

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)