- Split input into 2 regimes
if x < -162471292.3498542 or 1.068626064694855e-49 < x
Initial program 0.2
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Taylor expanded around 0 8.0
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
- Using strategy
rm Applied associate-/l*0.2
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x}{\frac{y}{z}}}\right|\]
if -162471292.3498542 < x < 1.068626064694855e-49
Initial program 2.5
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Taylor expanded around 0 0.1
\[\leadsto \left|\frac{x + 4}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
- Using strategy
rm Applied flip-+0.1
\[\leadsto \left|\frac{\color{blue}{\frac{x \cdot x - 4 \cdot 4}{x - 4}}}{y} - \frac{x \cdot z}{y}\right|\]
Applied associate-/l/0.1
\[\leadsto \left|\color{blue}{\frac{x \cdot x - 4 \cdot 4}{y \cdot \left(x - 4\right)}} - \frac{x \cdot z}{y}\right|\]
Simplified0.1
\[\leadsto \left|\frac{\color{blue}{x \cdot x + -16}}{y \cdot \left(x - 4\right)} - \frac{x \cdot z}{y}\right|\]
- Recombined 2 regimes into one program.
Final simplification0.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -162471292.3498542:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\\
\mathbf{elif}\;x \le 1.068626064694855 \cdot 10^{-49}:\\
\;\;\;\;\left|\frac{x \cdot x + -16}{y \cdot \left(x - 4\right)} - \frac{z \cdot x}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\\
\end{array}\]