- Split input into 3 regimes
if (/ (* x (- y z)) (- t z)) < -0.0
Initial program 11.0
\[\frac{x \cdot \left(y - z\right)}{t - z}\]
- Using strategy
rm Applied associate-/l*2.1
\[\leadsto \color{blue}{\frac{x}{\frac{t - z}{y - z}}}\]
- Using strategy
rm Applied div-inv2.2
\[\leadsto \frac{x}{\color{blue}{\left(t - z\right) \cdot \frac{1}{y - z}}}\]
if -0.0 < (/ (* x (- y z)) (- t z)) < 1.4588945007818368e+286
Initial program 0.3
\[\frac{x \cdot \left(y - z\right)}{t - z}\]
- Using strategy
rm Applied sub-neg0.3
\[\leadsto \frac{x \cdot \color{blue}{\left(y + \left(-z\right)\right)}}{t - z}\]
Applied distribute-lft-in0.3
\[\leadsto \frac{\color{blue}{x \cdot y + x \cdot \left(-z\right)}}{t - z}\]
if 1.4588945007818368e+286 < (/ (* x (- y z)) (- t z))
Initial program 60.3
\[\frac{x \cdot \left(y - z\right)}{t - z}\]
- Using strategy
rm Applied *-un-lft-identity60.3
\[\leadsto \frac{x \cdot \left(y - z\right)}{\color{blue}{1 \cdot \left(t - z\right)}}\]
Applied times-frac0.9
\[\leadsto \color{blue}{\frac{x}{1} \cdot \frac{y - z}{t - z}}\]
Simplified0.9
\[\leadsto \color{blue}{x} \cdot \frac{y - z}{t - z}\]
- Recombined 3 regimes into one program.
Final simplification1.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{x \cdot \left(y - z\right)}{t - z} \le -0.0:\\
\;\;\;\;\frac{x}{\left(t - z\right) \cdot \frac{1}{y - z}}\\
\mathbf{elif}\;\frac{x \cdot \left(y - z\right)}{t - z} \le 1.4588945007818368 \cdot 10^{286}:\\
\;\;\;\;\frac{x \cdot y + x \cdot \left(-z\right)}{t - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y - z}{t - z}\\
\end{array}\]