What's the general procedure for finding a numerically stable form for a function?
Such as:
$$\frac{1}{1+2x}-\frac{1-x}{1+x}$$ when $x≈0$
or $$ln(x)-1$$when $x≈e$
I've only seen examples, but cannot grasp the "procedure" for what to look for in order to find a numerically stable alternative.