- Split input into 5 regimes
if re < -1.3505082134524001e+32
Initial program 41.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 11.9
\[\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}\]
Applied simplify11.8
\[\leadsto \color{blue}{\frac{\log \left(-re\right)}{\log base}}\]
if -1.3505082134524001e+32 < re < -2.1809202669233877e-170 or 1.2572170467906488e-205 < re < 3.0378643623074555e+54
Initial program 17.8
\[\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-sqr-sqrt17.8
\[\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{\log base \cdot \log base + 0 \cdot 0} \cdot \sqrt{\log base \cdot \log base + 0 \cdot 0}}}\]
Applied *-un-lft-identity17.8
\[\leadsto \frac{\color{blue}{1 \cdot \left(\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0\right)}}{\sqrt{\log base \cdot \log base + 0 \cdot 0} \cdot \sqrt{\log base \cdot \log base + 0 \cdot 0}}\]
Applied times-frac17.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{\log base \cdot \log base + 0 \cdot 0}} \cdot \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\sqrt{\log base \cdot \log base + 0 \cdot 0}}}\]
Applied simplify17.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{\log base \cdot \log base}}} \cdot \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base + \tan^{-1}_* \frac{im}{re} \cdot 0}{\sqrt{\log base \cdot \log base + 0 \cdot 0}}\]
Applied simplify17.8
\[\leadsto \frac{1}{\sqrt{\log base \cdot \log base}} \cdot \color{blue}{\frac{\log base \cdot \log \left(\sqrt{im \cdot im + re \cdot re}\right)}{\sqrt{\log base \cdot \log base}}}\]
if -2.1809202669233877e-170 < re < -3.7032766182290336e-250 or 1.5998665519233234e-303 < re < 6.160578325280785e-218
Initial program 31.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}\]
- Using strategy
rm Applied add-cbrt-cube31.2
\[\leadsto \color{blue}{\sqrt[3]{\left(\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} \cdot \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}\right) \cdot \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}}}\]
Applied simplify31.2
\[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{\log \left(\sqrt{im \cdot im + re \cdot re}\right)}{\frac{\log base}{1}}\right)}^{3}}}\]
Taylor expanded around -inf 34.9
\[\leadsto \sqrt[3]{{\left(\frac{\log \color{blue}{\left(-1 \cdot im\right)}}{\frac{\log base}{1}}\right)}^{3}}\]
Applied simplify34.8
\[\leadsto \color{blue}{\frac{\log \left(-im\right)}{\log base}}\]
if -3.7032766182290336e-250 < re < 1.5998665519233234e-303
Initial program 34.6
\[\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 0 33.0
\[\leadsto \color{blue}{\frac{\log im}{\log base}}\]
if 6.160578325280785e-218 < re < 1.2572170467906488e-205 or 3.0378643623074555e+54 < re
Initial program 44.1
\[\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 11.7
\[\leadsto \color{blue}{\frac{\log \left(\frac{1}{re}\right)}{\log \left(\frac{1}{base}\right)}}\]
Applied simplify11.6
\[\leadsto \color{blue}{\frac{-\log re}{-\log base}}\]
- Recombined 5 regimes into one program.
Applied simplify18.1
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;re \le -1.3505082134524001 \cdot 10^{+32}:\\
\;\;\;\;\frac{\log \left(-re\right)}{\log base}\\
\mathbf{if}\;re \le -2.1809202669233877 \cdot 10^{-170}:\\
\;\;\;\;\frac{\log base \cdot \log \left(\sqrt{im \cdot im + re \cdot re}\right)}{\sqrt{\log base \cdot \log base}} \cdot \frac{1}{\sqrt{\log base \cdot \log base}}\\
\mathbf{if}\;re \le -3.7032766182290336 \cdot 10^{-250}:\\
\;\;\;\;\frac{\log \left(-im\right)}{\log base}\\
\mathbf{if}\;re \le 1.5998665519233234 \cdot 10^{-303}:\\
\;\;\;\;\frac{\log im}{\log base}\\
\mathbf{if}\;re \le 6.160578325280785 \cdot 10^{-218}:\\
\;\;\;\;\frac{\log \left(-im\right)}{\log base}\\
\mathbf{if}\;re \le 1.2572170467906488 \cdot 10^{-205} \lor \neg \left(re \le 3.0378643623074555 \cdot 10^{+54}\right):\\
\;\;\;\;\frac{-\log re}{-\log base}\\
\mathbf{else}:\\
\;\;\;\;\frac{\log base \cdot \log \left(\sqrt{im \cdot im + re \cdot re}\right)}{\sqrt{\log base \cdot \log base}} \cdot \frac{1}{\sqrt{\log base \cdot \log base}}\\
\end{array}}\]