- Split input into 2 regimes
if (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))) < -3.5549722042252767e-16
Initial program 0.1
\[x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\]
- Using strategy
rm Applied add-cbrt-cube0.1
\[\leadsto x \cdot \color{blue}{\sqrt[3]{\left(e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)} \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\right) \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}}}\]
Simplified0.1
\[\leadsto x \cdot \sqrt[3]{\color{blue}{{\left(e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\right)}^{3}}}\]
if -3.5549722042252767e-16 < (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b)))
Initial program 6.5
\[x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\]
Taylor expanded around 0 1.7
\[\leadsto x \cdot e^{y \cdot \left(\log z - t\right) + a \cdot \left(\color{blue}{\left(\log 1 - \left(\frac{1}{2} \cdot \frac{{z}^{2}}{{1}^{2}} + 1 \cdot z\right)\right)} - b\right)}\]
Taylor expanded around inf 2.0
\[\leadsto x \cdot e^{\color{blue}{-\left(a \cdot b + \left(1 \cdot \left(a \cdot z\right) + 0.5 \cdot \left(a \cdot {z}^{2}\right)\right)\right)}}\]
- Recombined 2 regimes into one program.
Final simplification0.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right) \le -3.5549722042252767 \cdot 10^{-16}:\\
\;\;\;\;x \cdot \sqrt[3]{{\left(e^{y \cdot \left(\log z - t\right) + a \cdot \left(\log \left(1 - z\right) - b\right)}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot e^{-\left(a \cdot b + \left(1 \cdot \left(a \cdot z\right) + 0.5 \cdot \left(a \cdot {z}^{2}\right)\right)\right)}\\
\end{array}\]