I want to regularize a function such that $G_{\epsilon}(x) = 1$ for $|x| > \epsilon$, where $\epsilon > 0$ is small, and $G_{\epsilon}(0) = 0$, so that $G_{\epsilon}$ converges uniformly towards 1.
The function I tried is the following: $$ F_{\epsilon}(x) = \left|\tanh\left(\frac{x}{\epsilon}\right)\right| $$ but even after trying to regularize the absolute value function using $x \tanh\left(\frac{x}{\epsilon}\right)$, I am not able to get a good approximation for $G_{\epsilon}$.
