- Split input into 2 regimes
if x < -2.2867923819455498e-122 or 1.3178675420605502e-23 < x
Initial program 0.6
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied div-inv0.6
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\left(x \cdot \frac{1}{y}\right)} \cdot z\right|\]
Applied associate-*l*0.6
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{x \cdot \left(\frac{1}{y} \cdot z\right)}\right|\]
Applied simplify0.5
\[\leadsto \left|\frac{x + 4}{y} - x \cdot \color{blue}{\frac{z}{y}}\right|\]
if -2.2867923819455498e-122 < x < 1.3178675420605502e-23
Initial program 2.9
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied associate-*l/0.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
- Recombined 2 regimes into one program.
Applied simplify0.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;x \le -2.2867923819455498 \cdot 10^{-122} \lor \neg \left(x \le 1.3178675420605502 \cdot 10^{-23}\right):\\
\;\;\;\;\left|\frac{x + 4}{y} - x \cdot \frac{z}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{x + 4}{y} - \frac{z \cdot x}{y}\right|\\
\end{array}}\]