- Split input into 3 regimes
if (- (/ (+ x 4) y) (/ (* x z) y)) < -1.5947771882232943e+306
Initial program 0.2
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied add-cube-cbrt0.3
\[\leadsto \left|\color{blue}{\left(\sqrt[3]{\frac{x + 4}{y}} \cdot \sqrt[3]{\frac{x + 4}{y}}\right) \cdot \sqrt[3]{\frac{x + 4}{y}}} - \frac{x}{y} \cdot z\right|\]
if -1.5947771882232943e+306 < (- (/ (+ x 4) y) (/ (* x z) y)) < 4.4813670005192934e+231
Initial program 1.7
\[\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|\]
if 4.4813670005192934e+231 < (- (/ (+ x 4) y) (/ (* x z) y))
Initial program 0.1
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Taylor expanded around 0 15.5
\[\leadsto \left|\color{blue}{\left(\frac{x}{y} + 4 \cdot \frac{1}{y}\right) - \frac{x \cdot z}{y}}\right|\]
Simplified0.1
\[\leadsto \left|\color{blue}{\left(\frac{x}{y} + \frac{4}{y}\right) - \frac{z}{\frac{y}{x}}}\right|\]
- Recombined 3 regimes into one program.
Final simplification0.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{4 + x}{y} - \frac{z \cdot x}{y} \le -1.5947771882232943 \cdot 10^{+306}:\\
\;\;\;\;\left|\sqrt[3]{\frac{4 + x}{y}} \cdot \left(\sqrt[3]{\frac{4 + x}{y}} \cdot \sqrt[3]{\frac{4 + x}{y}}\right) - \frac{x}{y} \cdot z\right|\\
\mathbf{elif}\;\frac{4 + x}{y} - \frac{z \cdot x}{y} \le 4.4813670005192934 \cdot 10^{+231}:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{z \cdot x}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\left(\frac{4}{y} + \frac{x}{y}\right) - \frac{z}{\frac{y}{x}}\right|\\
\end{array}\]