- Split input into 3 regimes
if re < -2.782401687193228e+135
Initial program 57.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 simplification57.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*57.4
\[\leadsto \color{blue}{\frac{\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base}}{\log base}}\]
- Using strategy
rm Applied *-un-lft-identity57.4
\[\leadsto \frac{\color{blue}{1 \cdot \frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base}}}{\log base}\]
Applied associate-/l*57.4
\[\leadsto \color{blue}{\frac{1}{\frac{\log base}{\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\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.4
\[\leadsto \frac{1}{\color{blue}{\frac{-\log base}{\log \left(\frac{-1}{re}\right)}}}\]
if -2.782401687193228e+135 < re < 2.2712058757248778e+76
Initial program 21.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 simplification21.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 associate-/r*21.2
\[\leadsto \color{blue}{\frac{\frac{\log \left(\sqrt{re \cdot re + im \cdot im}\right) \cdot \log base}{\log base}}{\log base}}\]
- Using strategy
rm Applied add-cube-cbrt21.2
\[\leadsto \frac{\frac{\log \color{blue}{\left(\left(\sqrt[3]{\sqrt{re \cdot re + im \cdot im}} \cdot \sqrt[3]{\sqrt{re \cdot re + im \cdot im}}\right) \cdot \sqrt[3]{\sqrt{re \cdot re + im \cdot im}}\right)} \cdot \log base}{\log base}}{\log base}\]
if 2.2712058757248778e+76 < re
Initial program 46.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}\]
Initial simplification46.8
\[\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*46.8
\[\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 inf 10.5
\[\leadsto \frac{\color{blue}{-1 \cdot \log \left(\frac{1}{re}\right)}}{\log base}\]
Simplified10.5
\[\leadsto \frac{\color{blue}{\log re}}{\log base}\]
- Recombined 3 regimes into one program.
Final simplification17.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;re \le -2.782401687193228 \cdot 10^{+135}:\\
\;\;\;\;\frac{1}{\frac{-\log base}{\log \left(\frac{-1}{re}\right)}}\\
\mathbf{elif}\;re \le 2.2712058757248778 \cdot 10^{+76}:\\
\;\;\;\;\frac{\frac{\log \left(\sqrt[3]{\sqrt{im \cdot im + re \cdot re}} \cdot \left(\sqrt[3]{\sqrt{im \cdot im + re \cdot re}} \cdot \sqrt[3]{\sqrt{im \cdot im + re \cdot re}}\right)\right) \cdot \log base}{\log base}}{\log base}\\
\mathbf{else}:\\
\;\;\;\;\frac{\log re}{\log base}\\
\end{array}\]