- Split input into 4 regimes
if re < -7.266161600389518e+142
Initial program 59.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}\]
Initial simplification59.3
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base \cdot \log base}\]
- Using strategy
rm Applied clear-num59.3
\[\leadsto \color{blue}{\frac{1}{\frac{\log base \cdot \log base}{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}}}\]
Taylor expanded around -inf 62.8
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{\log -1 - \log \left(\frac{-1}{base}\right)}{\log \left(\frac{-1}{re}\right)}}}\]
Simplified7.1
\[\leadsto \frac{1}{\color{blue}{\frac{-\log base}{\log \left(\frac{-1}{re}\right)}}}\]
if -7.266161600389518e+142 < re < 2.0267169770552964e-281 or 1.0336891779074329e-137 < re < 8.623049544666381e+99
Initial program 19.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}\]
Initial simplification19.1
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base \cdot \log base}\]
- Using strategy
rm Applied clear-num19.2
\[\leadsto \color{blue}{\frac{1}{\frac{\log base \cdot \log base}{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}}}\]
if 2.0267169770552964e-281 < re < 1.0336891779074329e-137
Initial program 29.4
\[\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 simplification29.4
\[\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*29.4
\[\leadsto \color{blue}{\frac{\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base}}{\log base}}\]
Taylor expanded around 0 33.9
\[\leadsto \frac{\color{blue}{\log im}}{\log base}\]
if 8.623049544666381e+99 < re
Initial program 49.7
\[\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 simplification49.7
\[\leadsto \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base \cdot \log base}\]
- Using strategy
rm Applied clear-num49.7
\[\leadsto \color{blue}{\frac{1}{\frac{\log base \cdot \log base}{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}}}\]
Taylor expanded around inf 8.4
\[\leadsto \frac{1}{\color{blue}{\frac{\log \left(\frac{1}{base}\right)}{\log \left(\frac{1}{re}\right)}}}\]
Simplified8.4
\[\leadsto \frac{1}{\color{blue}{\frac{-\log base}{-\log re}}}\]
- Recombined 4 regimes into one program.
Final simplification17.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;re \le -7.266161600389518 \cdot 10^{+142}:\\
\;\;\;\;\frac{1}{\frac{-\log base}{\log \left(\frac{-1}{re}\right)}}\\
\mathbf{elif}\;re \le 2.0267169770552964 \cdot 10^{-281}:\\
\;\;\;\;\frac{1}{\frac{\log base \cdot \log base}{\log base \cdot \log \left(\sqrt{im \cdot im + re \cdot re}\right)}}\\
\mathbf{elif}\;re \le 1.0336891779074329 \cdot 10^{-137}:\\
\;\;\;\;\frac{\log im}{\log base}\\
\mathbf{elif}\;re \le 8.623049544666381 \cdot 10^{+99}:\\
\;\;\;\;\frac{1}{\frac{\log base \cdot \log base}{\log base \cdot \log \left(\sqrt{im \cdot im + re \cdot re}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{-\log base}{-\log re}}\\
\end{array}\]