- 14,922
- 28
Today, I had the desire to construct a C^{\infty} approximation to a tent function. Specifically, for any positive real number e I want a C^{\infty} function f such that:
f(x) = 0 if |x| > 1 + e
|f(x) - g(x)| < e for all x
where g(x) is the tent function given by:
<br /> g(x) =<br /> \begin{cases}<br /> 0 & |x| \geq 1 \\<br /> 1 - |x| & |x| \leq 1<br /> \end{cases}<br />
I'm willing to accept on faith that such things exist, but it struck me today that I don't know how to go about constructing such a thing, or at least proving its existence.
Given time I could probably figure it out, but I'm interested in a different problem (for which I want to use this), and I imagine this is a well-known thing.
So I guess what I'm looking for is at least a "yes" or "no" answer to the existence of such a function, but a hint as to the proof would be nice too.
f(x) = 0 if |x| > 1 + e
|f(x) - g(x)| < e for all x
where g(x) is the tent function given by:
<br /> g(x) =<br /> \begin{cases}<br /> 0 & |x| \geq 1 \\<br /> 1 - |x| & |x| \leq 1<br /> \end{cases}<br />
I'm willing to accept on faith that such things exist, but it struck me today that I don't know how to go about constructing such a thing, or at least proving its existence.
Given time I could probably figure it out, but I'm interested in a different problem (for which I want to use this), and I imagine this is a well-known thing.
So I guess what I'm looking for is at least a "yes" or "no" answer to the existence of such a function, but a hint as to the proof would be nice too.