I'm interested in finding a non-piecewise approximation to a simple piecewise function.
$$ f(x) = \begin{cases} 0 & : x < T \\ x-T & : x \geq T \end{cases} $$
i.e. the function is $0$ until it is turned on at a certain point ($T$). And afterwards has a slope of $1$. $T$ is a parameter that can be arbitrarily varied.
Here's a plot of the function for $T = 5$

To rewrite a function $f:\mathbb R\to \mathbb R$ which has absolute values as one which does not, use the square root of the square.
Given $f(x;T)=\frac 12 (x-T)+|\frac 12(x-T)|$, write
$$f(x;T)=\frac 12 (x-T)+\frac 12\sqrt{(x-T)^2}$$
To clarify for anyone reading this and thinking "why not just remove the square and the root?" make sure to note that only the positive branch of the square root is being used.
It should be possible to write a multi-branch function (e.g. "W") that operates this way, given the proper fractional components and overlaps.