- Split input into 3 regimes
if (- (+ x 4) (* x z)) < -4.3979325261402567e+272
Initial program 0.3
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
- Using strategy
rm Applied add-cube-cbrt1.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\left(\left(\sqrt[3]{\frac{x}{y}} \cdot \sqrt[3]{\frac{x}{y}}\right) \cdot \sqrt[3]{\frac{x}{y}}\right)} \cdot z\right|\]
Applied associate-*l*1.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\left(\sqrt[3]{\frac{x}{y}} \cdot \sqrt[3]{\frac{x}{y}}\right) \cdot \left(\sqrt[3]{\frac{x}{y}} \cdot z\right)}\right|\]
Taylor expanded around 0 50.6
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{e^{\log x - \log y} \cdot z}\right|\]
Simplified0.2
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{x \cdot \frac{z}{y}}\right|\]
if -4.3979325261402567e+272 < (- (+ x 4) (* x z)) < 3.0192466468152004e+96
Initial program 1.8
\[\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|\]
if 3.0192466468152004e+96 < (- (+ x 4) (* x z))
Initial program 1.1
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Initial simplification1.3
\[\leadsto \left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\]
- Recombined 3 regimes into one program.
Final simplification0.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;\left(4 + x\right) - z \cdot x \le -4.3979325261402567 \cdot 10^{+272}:\\
\;\;\;\;\left|\frac{4 + x}{y} - x \cdot \frac{z}{y}\right|\\
\mathbf{elif}\;\left(4 + x\right) - z \cdot x \le 3.0192466468152004 \cdot 10^{+96}:\\
\;\;\;\;\left|\frac{\left(4 + x\right) - z \cdot x}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\\
\end{array}\]