- Split input into 2 regimes
if re < -1.2068211949372295e+73
Initial program 45.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}\]
Initial simplification45.6
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base \cdot \log base}\]
Taylor expanded around -inf 62.8
\[\leadsto \color{blue}{-1 \cdot \frac{\log \left(\frac{-1}{re}\right)}{\log -1 - \log \left(\frac{-1}{base}\right)}}\]
Simplified9.8
\[\leadsto \color{blue}{\frac{-1}{\log base} \cdot \log \left(\frac{-1}{re}\right)}\]
- Using strategy
rm Applied add-exp-log9.8
\[\leadsto \frac{-1}{\log base} \cdot \log \color{blue}{\left(e^{\log \left(\frac{-1}{re}\right)}\right)}\]
Applied rem-log-exp9.8
\[\leadsto \frac{-1}{\log base} \cdot \color{blue}{\log \left(\frac{-1}{re}\right)}\]
if -1.2068211949372295e+73 < 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}\]
Initial simplification20.9
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base \cdot \log base}\]
- Using strategy
rm Applied associate-/r*20.9
\[\leadsto \color{blue}{\frac{\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base}}{\log base}}\]
- Recombined 2 regimes into one program.
Final simplification16.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;re \le -1.2068211949372295 \cdot 10^{+73}:\\
\;\;\;\;\frac{-1}{\log base} \cdot \log \left(\frac{-1}{re}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\log \left(\sqrt{im \cdot im + re \cdot re}\right) \cdot \log base}{\log base}}{\log base}\\
\end{array}\]