I assume that we are working on a machine with rounded four-digit decimal arithmetic, I know that we have this formula:
$\sqrt x - \sqrt y = \frac{x - y}{\sqrt x + \sqrt y}$
Since there is cancelation error in machine so it is better to use this formula for computing $fl(\sqrt x - \sqrt y)$ .But can you give me an example that computing simple difference for computing $fl(\sqrt x - \sqrt y)$ (I mean directly compute $\sqrt x - \sqrt y$) is more accurate than computing $\frac{x - y}{\sqrt x + \sqrt y}$ ?
I tried lots of examples but using formula is always more accurate or both of them have the same accuracy ,can any one help me?