I am looking for $C^1$ and $C^2$ continuous approximations to the ramp function, f(x), that satisfy the condition $f(x)=0$, $x\leq0$ (essentially smoothing out the discontinuity in the first derivative at $x=0$). Any help in this regard is appreciated.
Edit: The ramp function should be linear away from $x=0$ (essentially smoothing out the kink in the neighborhood of $x=0$.