Exercise \(1.3-2:\) The \(x\) -intercept of the line passing through the points
\(\left(x_{1}, y_{1}\right)\) and \(\left(x_{2}, y_{2}\right)\) can be computed
using either one of the following formulas:
$$x=\frac{x_{1} y_{2}-x_{2} y_{1}}{y_{2}-y_{1}}$$
or,
$$x=x_{1}-\frac{\left(x_{2}-x_{1}\right) y_{1}}{y_{2}-y_{1}}$$
with the assumption \(y_{1} \neq y_{2}\).
a) Show that the formulas are equivalent to each other.
b) Compute the \(x\) -intercept using each formula when \(\left(x_{1},
y_{1}\right)=(1.02,3.32)\) and \(\left(x_{2}, y_{2}\right)=\) \((1.31,4.31) .\) Use
three-digit rounding arithmetic.
c) Use Python (or a calculator) to compute the \(x\) -intercept using the full-
precision of the device (you can use either one of the formulas). Using this
result, compute the relative and absolute
errors of the answers you gave in part
(b). Discuss which formula is better and why.