- Split input into 2 regimes
if (- (+ x 4) (* x z)) < -6.597449292105928e+188 or 7.32530431740223e+118 < (- (+ x 4) (* x z))
Initial program 0.9
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied div-inv0.9
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\left(x \cdot \frac{1}{y}\right)} \cdot z\right|\]
Applied associate-*l*1.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{x \cdot \left(\frac{1}{y} \cdot z\right)}\right|\]
if -6.597449292105928e+188 < (- (+ x 4) (* x z)) < 7.32530431740223e+118
Initial program 2.0
\[\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|\]
Applied sub-div0.1
\[\leadsto \left|\color{blue}{\frac{\left(x + 4\right) - x \cdot z}{y}}\right|\]
- Recombined 2 regimes into one program.
Final simplification0.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;\left(4 + x\right) - z \cdot x \le -6.597449292105928 \cdot 10^{+188} \lor \neg \left(\left(4 + x\right) - z \cdot x \le 7.32530431740223 \cdot 10^{+118}\right):\\
\;\;\;\;\left|\frac{4 + x}{y} - x \cdot \left(z \cdot \frac{1}{y}\right)\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{\left(4 + x\right) - z \cdot x}{y}\right|\\
\end{array}\]