The popular function
f(x) = e^(-1/x^2) when x is nonzero = 0 when x = 0
defines one that is flat at 0 (all derivatives vanish there). My question is: How do I construct a (differentiable) function that is flat at more than one points, say, at 0 and 1, simultaneously.
In general, how do I construct a (differentiable) function that is flat at countably infinitely many points?
I am thinking of this problem in the lines of the Pasting Lemma. As for example, taking different functions flat at the points 0 and 1, and then gluing them. But, doing so might be a compromise on differentiability at the point where the pasting is done. How do I get around this problem?