- Split input into 4 regimes
if (- (/ y z) (/ t (- 1.0 z))) < -9.6857485539949236e154
Initial program 13.7
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
- Using strategy
rm Applied sub-neg13.7
\[\leadsto x \cdot \color{blue}{\left(\frac{y}{z} + \left(-\frac{t}{1 - z}\right)\right)}\]
Applied distribute-lft-in13.7
\[\leadsto \color{blue}{x \cdot \frac{y}{z} + x \cdot \left(-\frac{t}{1 - z}\right)}\]
- Using strategy
rm Applied div-inv13.7
\[\leadsto x \cdot \color{blue}{\left(y \cdot \frac{1}{z}\right)} + x \cdot \left(-\frac{t}{1 - z}\right)\]
Applied associate-*r*1.7
\[\leadsto \color{blue}{\left(x \cdot y\right) \cdot \frac{1}{z}} + x \cdot \left(-\frac{t}{1 - z}\right)\]
if -9.6857485539949236e154 < (- (/ y z) (/ t (- 1.0 z))) < -2.5686540443753593e-251 or 2.3195645250706023e-204 < (- (/ y z) (/ t (- 1.0 z))) < 3.6854979425919384e246
Initial program 0.2
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
- Using strategy
rm Applied add-cube-cbrt1.3
\[\leadsto \color{blue}{\left(\sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}\right) \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}}\]
if -2.5686540443753593e-251 < (- (/ y z) (/ t (- 1.0 z))) < 2.3195645250706023e-204
Initial program 11.5
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
Taylor expanded around inf 0.9
\[\leadsto \color{blue}{\frac{x \cdot y}{z} + \left(\frac{t \cdot x}{z} + 1 \cdot \frac{t \cdot x}{{z}^{2}}\right)}\]
Simplified1.1
\[\leadsto \color{blue}{\frac{x}{z} \cdot \left(\left(\frac{1}{z} + 1\right) \cdot t + y\right)}\]
if 3.6854979425919384e246 < (- (/ y z) (/ t (- 1.0 z)))
Initial program 29.5
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
- Using strategy
rm Applied frac-sub32.1
\[\leadsto x \cdot \color{blue}{\frac{y \cdot \left(1 - z\right) - z \cdot t}{z \cdot \left(1 - z\right)}}\]
Applied associate-*r/3.2
\[\leadsto \color{blue}{\frac{x \cdot \left(y \cdot \left(1 - z\right) - z \cdot t\right)}{z \cdot \left(1 - z\right)}}\]
- Recombined 4 regimes into one program.
Final simplification1.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{y}{z} - \frac{t}{1 - z} \le -9.6857485539949236 \cdot 10^{154}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \frac{1}{z} + x \cdot \left(-\frac{t}{1 - z}\right)\\
\mathbf{elif}\;\frac{y}{z} - \frac{t}{1 - z} \le -2.5686540443753593 \cdot 10^{-251}:\\
\;\;\;\;\left(\sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}\right) \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}\\
\mathbf{elif}\;\frac{y}{z} - \frac{t}{1 - z} \le 2.3195645250706023 \cdot 10^{-204}:\\
\;\;\;\;\frac{x}{z} \cdot \left(\left(\frac{1}{z} + 1\right) \cdot t + y\right)\\
\mathbf{elif}\;\frac{y}{z} - \frac{t}{1 - z} \le 3.6854979425919384 \cdot 10^{246}:\\
\;\;\;\;\left(\sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)} \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}\right) \cdot \sqrt[3]{x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(y \cdot \left(1 - z\right) - z \cdot t\right)}{z \cdot \left(1 - z\right)}\\
\end{array}\]