- Split input into 3 regimes
if x < -7.548388252384961e-62
Initial program 0.3
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Initial simplification0.3
\[\leadsto \left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\]
- Using strategy
rm Applied associate-/r/0.3
\[\leadsto \left|\frac{4 + x}{y} - \color{blue}{\frac{x}{y} \cdot z}\right|\]
if -7.548388252384961e-62 < x < 1.8313522942110108e-97
Initial program 3.0
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Initial simplification5.9
\[\leadsto \left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\]
- Using strategy
rm Applied associate-/r/3.0
\[\leadsto \left|\frac{4 + x}{y} - \color{blue}{\frac{x}{y} \cdot z}\right|\]
- Using strategy
rm Applied associate-*l/0.1
\[\leadsto \left|\frac{4 + x}{y} - \color{blue}{\frac{x \cdot z}{y}}\right|\]
Applied sub-div0.1
\[\leadsto \left|\color{blue}{\frac{\left(4 + x\right) - x \cdot z}{y}}\right|\]
Simplified0.1
\[\leadsto \left|\frac{\color{blue}{x - (z \cdot x + -4)_*}}{y}\right|\]
if 1.8313522942110108e-97 < x
Initial program 0.5
\[\left|\frac{x + 4}{y} - \frac{x}{y} \cdot z\right|\]
Initial simplification0.6
\[\leadsto \left|\frac{4 + x}{y} - \frac{x}{\frac{y}{z}}\right|\]
- Using strategy
rm Applied div-inv0.8
\[\leadsto \left|\frac{4 + x}{y} - \color{blue}{x \cdot \frac{1}{\frac{y}{z}}}\right|\]
Taylor expanded around inf 0.8
\[\leadsto \left|\frac{4 + x}{y} - x \cdot \color{blue}{\frac{z}{y}}\right|\]
- Recombined 3 regimes into one program.
Final simplification0.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;x \le -7.548388252384961 \cdot 10^{-62}:\\
\;\;\;\;\left|\frac{4 + x}{y} - \frac{x}{y} \cdot z\right|\\
\mathbf{elif}\;x \le 1.8313522942110108 \cdot 10^{-97}:\\
\;\;\;\;\left|\frac{x - (z \cdot x + -4)_*}{y}\right|\\
\mathbf{else}:\\
\;\;\;\;\left|\frac{4 + x}{y} - x \cdot \frac{z}{y}\right|\\
\end{array}\]