- Split input into 2 regimes
if (fabs (- (/ (+ x 4) y) (* x (/ z y)))) < 1.6877669236459925e+301
Initial program 1.7
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied *-un-lft-identity1.7
\[\leadsto \left|\color{blue}{1 \cdot \frac{x + 4}{y}} - \frac{x}{y} \cdot z\right|\]
Applied prod-diff1.7
\[\leadsto \left|\color{blue}{(1 \cdot \left(\frac{x + 4}{y}\right) + \left(-z \cdot \frac{x}{y}\right))_* + (\left(-z\right) \cdot \left(\frac{x}{y}\right) + \left(z \cdot \frac{x}{y}\right))_*}\right|\]
Applied simplify0.1
\[\leadsto \left|\color{blue}{\left(\frac{x + 4}{y} - \frac{x}{\frac{y}{z}}\right)} + (\left(-z\right) \cdot \left(\frac{x}{y}\right) + \left(z \cdot \frac{x}{y}\right))_*\right|\]
Applied simplify0.1
\[\leadsto \left|\left(\frac{x + 4}{y} - \frac{x}{\frac{y}{z}}\right) + \color{blue}{0}\right|\]
if 1.6877669236459925e+301 < (fabs (- (/ (+ x 4) y) (* x (/ z y))))
Initial program 0.1
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied associate-*l/1.7
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
Applied sub-div1.7
\[\leadsto \left|\color{blue}{\frac{\left(x + 4\right) - x \cdot z}{y}}\right|\]
- Recombined 2 regimes into one program.
Applied simplify0.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\left|\frac{4 + x}{y} - x \cdot \frac{z}{y}\right| \le 1.6877669236459925 \cdot 10^{+301}:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(4 + x\right) - z \cdot x}{y}\right|\\
\end{array}}\]