- Split input into 2 regimes
if (- (/ y z) (/ t (- 1.0 z))) < -inf.0 or 1.1070795943172787e+304 < (- (/ y z) (/ t (- 1.0 z)))
Initial program 61.8
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
- Using strategy
rm Applied add-cube-cbrt61.8
\[\leadsto x \cdot \left(\frac{y}{z} - \frac{t}{\color{blue}{\left(\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}\right) \cdot \sqrt[3]{1 - z}}}\right)\]
Applied *-un-lft-identity61.8
\[\leadsto x \cdot \left(\frac{y}{z} - \frac{\color{blue}{1 \cdot t}}{\left(\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}\right) \cdot \sqrt[3]{1 - z}}\right)\]
Applied times-frac61.8
\[\leadsto x \cdot \left(\frac{y}{z} - \color{blue}{\frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \frac{t}{\sqrt[3]{1 - z}}}\right)\]
Applied add-sqr-sqrt62.1
\[\leadsto x \cdot \left(\color{blue}{\sqrt{\frac{y}{z}} \cdot \sqrt{\frac{y}{z}}} - \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \frac{t}{\sqrt[3]{1 - z}}\right)\]
Applied prod-diff62.1
\[\leadsto x \cdot \color{blue}{\left(\mathsf{fma}\left(\sqrt{\frac{y}{z}}, \sqrt{\frac{y}{z}}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right) + \mathsf{fma}\left(-\frac{t}{\sqrt[3]{1 - z}}, \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}, \frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)\right)}\]
Simplified61.8
\[\leadsto x \cdot \left(\color{blue}{\mathsf{fma}\left(1, \frac{y}{z}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)} + \mathsf{fma}\left(-\frac{t}{\sqrt[3]{1 - z}}, \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}, \frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)\right)\]
Simplified61.8
\[\leadsto x \cdot \left(\mathsf{fma}\left(1, \frac{y}{z}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right) + \color{blue}{\frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \left(\left(-\frac{t}{\sqrt[3]{1 - z}}\right) + \frac{t}{\sqrt[3]{1 - z}}\right)}\right)\]
Taylor expanded around 0 1.3
\[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
if -inf.0 < (- (/ y z) (/ t (- 1.0 z))) < 1.1070795943172787e+304
Initial program 1.2
\[x \cdot \left(\frac{y}{z} - \frac{t}{1 - z}\right)\]
- Using strategy
rm Applied add-cube-cbrt1.5
\[\leadsto x \cdot \left(\frac{y}{z} - \frac{t}{\color{blue}{\left(\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}\right) \cdot \sqrt[3]{1 - z}}}\right)\]
Applied *-un-lft-identity1.5
\[\leadsto x \cdot \left(\frac{y}{z} - \frac{\color{blue}{1 \cdot t}}{\left(\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}\right) \cdot \sqrt[3]{1 - z}}\right)\]
Applied times-frac1.5
\[\leadsto x \cdot \left(\frac{y}{z} - \color{blue}{\frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \frac{t}{\sqrt[3]{1 - z}}}\right)\]
Applied add-sqr-sqrt28.9
\[\leadsto x \cdot \left(\color{blue}{\sqrt{\frac{y}{z}} \cdot \sqrt{\frac{y}{z}}} - \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \frac{t}{\sqrt[3]{1 - z}}\right)\]
Applied prod-diff28.9
\[\leadsto x \cdot \color{blue}{\left(\mathsf{fma}\left(\sqrt{\frac{y}{z}}, \sqrt{\frac{y}{z}}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right) + \mathsf{fma}\left(-\frac{t}{\sqrt[3]{1 - z}}, \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}, \frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)\right)}\]
Simplified1.5
\[\leadsto x \cdot \left(\color{blue}{\mathsf{fma}\left(1, \frac{y}{z}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)} + \mathsf{fma}\left(-\frac{t}{\sqrt[3]{1 - z}}, \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}, \frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right)\right)\]
Simplified1.5
\[\leadsto x \cdot \left(\mathsf{fma}\left(1, \frac{y}{z}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right) + \color{blue}{\frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \left(\left(-\frac{t}{\sqrt[3]{1 - z}}\right) + \frac{t}{\sqrt[3]{1 - z}}\right)}\right)\]
- Recombined 2 regimes into one program.
Final simplification1.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{y}{z} - \frac{t}{1 - z} = -\infty \lor \neg \left(\frac{y}{z} - \frac{t}{1 - z} \le 1.10707959431727866 \cdot 10^{304}\right):\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(1, \frac{y}{z}, -\frac{t}{\sqrt[3]{1 - z}} \cdot \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}}\right) + \frac{1}{\sqrt[3]{1 - z} \cdot \sqrt[3]{1 - z}} \cdot \left(\left(-\frac{t}{\sqrt[3]{1 - z}}\right) + \frac{t}{\sqrt[3]{1 - z}}\right)\right)\\
\end{array}\]