- Split input into 2 regimes
if (/ (atan2 im re) (log 10)) < -0.6821881769208953
Initial program 1.0
\[\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\]
- Using strategy
rm Applied add-cbrt-cube1.6
\[\leadsto \frac{\tan^{-1}_* \frac{im}{re}}{\color{blue}{\sqrt[3]{\left(\log 10 \cdot \log 10\right) \cdot \log 10}}}\]
Applied add-cbrt-cube1.0
\[\leadsto \frac{\color{blue}{\sqrt[3]{\left(\tan^{-1}_* \frac{im}{re} \cdot \tan^{-1}_* \frac{im}{re}\right) \cdot \tan^{-1}_* \frac{im}{re}}}}{\sqrt[3]{\left(\log 10 \cdot \log 10\right) \cdot \log 10}}\]
Applied cbrt-undiv0.7
\[\leadsto \color{blue}{\sqrt[3]{\frac{\left(\tan^{-1}_* \frac{im}{re} \cdot \tan^{-1}_* \frac{im}{re}\right) \cdot \tan^{-1}_* \frac{im}{re}}{\left(\log 10 \cdot \log 10\right) \cdot \log 10}}}\]
Simplified0.0
\[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\right)}^{3}}}\]
if -0.6821881769208953 < (/ (atan2 im re) (log 10))
Initial program 0.8
\[\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\]
- Using strategy
rm Applied expm1-log1p-u0.8
\[\leadsto \color{blue}{(e^{\log_* (1 + \frac{\tan^{-1}_* \frac{im}{re}}{\log 10})} - 1)^*}\]
- Recombined 2 regimes into one program.
Final simplification0.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{\tan^{-1}_* \frac{im}{re}}{\log 10} \le -0.6821881769208953:\\
\;\;\;\;\sqrt[3]{{\left(\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\right)}^{3}}\\
\mathbf{else}:\\
\;\;\;\;(e^{\log_* (1 + \frac{\tan^{-1}_* \frac{im}{re}}{\log 10})} - 1)^*\\
\end{array}\]