- Split input into 2 regimes
if y < -0.0602077795756119
Initial program 2.9
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied div-inv2.9
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\left(x \cdot \frac{1}{y}\right)} \cdot z\right|\]
Applied associate-*l*0.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{x \cdot \left(\frac{1}{y} \cdot z\right)}\right|\]
if -0.0602077795756119 < y
Initial program 1.3
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied associate-*l/2.2
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
Applied sub-div2.2
\[\leadsto \left|\color{blue}{\frac{\left(x + 4\right) - x \cdot z}{y}}\right|\]
- Recombined 2 regimes into one program.
Final simplification1.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \le -0.0602077795756119:\\
\;\;\;\;\left|\frac{x + 4}{y} - \left(z \cdot \frac{1}{y}\right) \cdot x\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(x + 4\right) - x \cdot z}{y}\right|\\
\end{array}\]