I'm trying to follow the wikipedia page about catastrophic cancellation but I've hit something that just doesn't make sense to me. They say that subtraction can amplify existing approximation errors (by making relative error of the difference much larger than relative error of the terms).
But also they say that relative approximation error of the difference $x-y$ is $\delta_{x-y}=|(x\delta_x-y\delta_y)/(x-y)|$ s.t. $\forall z, \delta_z:=$ relative approximation error of z (pic below):
And naively you could say that $\delta_x=\delta_y=\epsilon$ (machine epsilon, upper bound of relative approximation error of floats). Which gives: $\delta_{x-y}=|(x\epsilon-y\epsilon)/(x-y)|=\epsilon|(x-y)/(x-y)|=\epsilon$. But this contradicts the statement that subtraction can greatly increase the relative error... What am I missing?
