Average Error: 30.7 → 0.4
Time: 41.9s
Precision: 64
Internal Precision: 576
\[\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}\]
\[\frac{\log \left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}{\frac{\log base}{1 + 1}} + \frac{\log \left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}{\log base}\]

Error

Bits error versus re

Bits error versus im

Bits error versus base

Derivation

  1. Initial program 30.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}\]
  2. Applied simplify0.4

    \[\leadsto \color{blue}{\frac{\log \left(\sqrt{re^2 + im^2}^*\right)}{\log base}}\]
  3. Using strategy rm
  4. Applied div-inv0.4

    \[\leadsto \color{blue}{\log \left(\sqrt{re^2 + im^2}^*\right) \cdot \frac{1}{\log base}}\]
  5. Using strategy rm
  6. Applied add-log-exp0.7

    \[\leadsto \color{blue}{\log \left(e^{\log \left(\sqrt{re^2 + im^2}^*\right) \cdot \frac{1}{\log base}}\right)}\]
  7. Applied simplify0.7

    \[\leadsto \log \color{blue}{\left({\left(\sqrt{re^2 + im^2}^*\right)}^{\left(\frac{1}{\log base}\right)}\right)}\]
  8. Using strategy rm
  9. Applied add-cube-cbrt0.7

    \[\leadsto \log \left({\color{blue}{\left(\left(\sqrt[3]{\sqrt{re^2 + im^2}^*} \cdot \sqrt[3]{\sqrt{re^2 + im^2}^*}\right) \cdot \sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}}^{\left(\frac{1}{\log base}\right)}\right)\]
  10. Applied unpow-prod-down0.8

    \[\leadsto \log \color{blue}{\left({\left(\sqrt[3]{\sqrt{re^2 + im^2}^*} \cdot \sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}^{\left(\frac{1}{\log base}\right)} \cdot {\left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}^{\left(\frac{1}{\log base}\right)}\right)}\]
  11. Applied log-prod0.7

    \[\leadsto \color{blue}{\log \left({\left(\sqrt[3]{\sqrt{re^2 + im^2}^*} \cdot \sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}^{\left(\frac{1}{\log base}\right)}\right) + \log \left({\left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}^{\left(\frac{1}{\log base}\right)}\right)}\]
  12. Applied simplify0.6

    \[\leadsto \color{blue}{\frac{\log \left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}{\frac{\log base}{1 + 1}}} + \log \left({\left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}^{\left(\frac{1}{\log base}\right)}\right)\]
  13. Applied simplify0.4

    \[\leadsto \frac{\log \left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}{\frac{\log base}{1 + 1}} + \color{blue}{\frac{\log \left(\sqrt[3]{\sqrt{re^2 + im^2}^*}\right)}{\log base}}\]

Runtime

Time bar (total: 41.9s)Debug logProfile

herbie shell --seed '#(1071246582 2318319007 2683472949 3810440501 3233274817 2724848749)' +o rules:numerics
(FPCore (re im base)
  :name "math.log/2 on complex, real part"
  (/ (+ (* (log (sqrt (+ (* re re) (* im im)))) (log base)) (* (atan2 im re) 0)) (+ (* (log base) (log base)) (* 0 0))))