- Split input into 3 regimes
if (/ -1 re) < -8.743263611195967e-98 or 7.160600680030045e-126 < (/ -1 re)
Initial program 20.9
\[\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
- Using strategy
rm Applied add-cbrt-cube21.0
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\color{blue}{\sqrt[3]{\left(\left(\log base \cdot \log base\right) \cdot \left(\log base \cdot \log base\right)\right) \cdot \left(\log base \cdot \log base\right)}} + 0 \cdot 0}\]
if -8.743263611195967e-98 < (/ -1 re) < 6.17756244838362e-309
Initial program 49.3
\[\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
Taylor expanded around inf 9.2
\[\leadsto \frac{\log \color{blue}{re} \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
if 6.17756244838362e-309 < (/ -1 re) < 7.160600680030045e-126
Initial program 55.0
\[\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
Taylor expanded around -inf 8.7
\[\leadsto \frac{\log \color{blue}{\left(-1 \cdot re\right)} \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
Simplified8.7
\[\leadsto \frac{\log \color{blue}{\left(-re\right)} \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\log base \cdot \log base + 0 \cdot 0}\]
- Recombined 3 regimes into one program.
Final simplification17.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{-1}{re} \le -8.743263611195967 \cdot 10^{-98}:\\
\;\;\;\;\frac{\log base \cdot \log \left(\sqrt{re \cdot re + im \cdot im}\right) + 0 \cdot \tan^{-1}_* \frac{im}{re}}{0 \cdot 0 + \sqrt[3]{\left(\log base \cdot \log base\right) \cdot \left(\left(\log base \cdot \log base\right) \cdot \left(\log base \cdot \log base\right)\right)}}\\
\mathbf{elif}\;\frac{-1}{re} \le 6.17756244838362 \cdot 10^{-309}:\\
\;\;\;\;\frac{0 \cdot \tan^{-1}_* \frac{im}{re} + \log re \cdot \log base}{\log base \cdot \log base + 0 \cdot 0}\\
\mathbf{elif}\;\frac{-1}{re} \le 7.160600680030045 \cdot 10^{-126}:\\
\;\;\;\;\frac{\log \left(-re\right) \cdot \log base + 0 \cdot \tan^{-1}_* \frac{im}{re}}{\log base \cdot \log base + 0 \cdot 0}\\
\mathbf{else}:\\
\;\;\;\;\frac{\log base \cdot \log \left(\sqrt{re \cdot re + im \cdot im}\right) + 0 \cdot \tan^{-1}_* \frac{im}{re}}{0 \cdot 0 + \sqrt[3]{\left(\log base \cdot \log base\right) \cdot \left(\left(\log base \cdot \log base\right) \cdot \left(\log base \cdot \log base\right)\right)}}\\
\end{array}\]