I got this problem from the book Numerical Analysis 8-th Edition (Burden):
Suppose two points $(x_0,y_0)$ and $(x_1,y_1)$ are on a straight line with $y_1\neq y_0$,
Two formulas are available to find the x-intercept of the line:
$x=\frac{x_0y_1-x_1y_0}{y_1-y_0}$ and $x=x_0-\frac{(x_1-x_0)y_0}{y_1-y_0}$
Explain why the second formula gives better results than the first formula when using rounding arithmetic.
I don't know for what reason the second formula gives better results than the first formula.
Thanks for any explanation.