Average Error: 0.8 → 0.1
Time: 13.0s
Precision: 64
\[\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\]
\[\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \left|\frac{1}{\sqrt[3]{\sqrt{\log 10}}}\right|\right) \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)\]
\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}
\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \left|\frac{1}{\sqrt[3]{\sqrt{\log 10}}}\right|\right) \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)
double f(double re, double im) {
        double r41098 = im;
        double r41099 = re;
        double r41100 = atan2(r41098, r41099);
        double r41101 = 10.0;
        double r41102 = log(r41101);
        double r41103 = r41100 / r41102;
        return r41103;
}

double f(double re, double im) {
        double r41104 = 1.0;
        double r41105 = 10.0;
        double r41106 = log(r41105);
        double r41107 = sqrt(r41106);
        double r41108 = r41104 / r41107;
        double r41109 = sqrt(r41108);
        double r41110 = im;
        double r41111 = re;
        double r41112 = atan2(r41110, r41111);
        double r41113 = r41112 / r41107;
        double r41114 = cbrt(r41107);
        double r41115 = r41104 / r41114;
        double r41116 = fabs(r41115);
        double r41117 = r41113 * r41116;
        double r41118 = sqrt(r41104);
        double r41119 = r41118 / r41114;
        double r41120 = sqrt(r41119);
        double r41121 = r41117 * r41120;
        double r41122 = r41109 * r41121;
        return r41122;
}

Error

Bits error versus re

Bits error versus im

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.8

    \[\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.8

    \[\leadsto \frac{\tan^{-1}_* \frac{im}{re}}{\color{blue}{\sqrt{\log 10} \cdot \sqrt{\log 10}}}\]
  4. Applied *-un-lft-identity0.8

    \[\leadsto \frac{\color{blue}{1 \cdot \tan^{-1}_* \frac{im}{re}}}{\sqrt{\log 10} \cdot \sqrt{\log 10}}\]
  5. Applied times-frac0.8

    \[\leadsto \color{blue}{\frac{1}{\sqrt{\log 10}} \cdot \frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}}}\]
  6. Using strategy rm
  7. Applied div-inv0.8

    \[\leadsto \frac{1}{\sqrt{\log 10}} \cdot \color{blue}{\left(\tan^{-1}_* \frac{im}{re} \cdot \frac{1}{\sqrt{\log 10}}\right)}\]
  8. Using strategy rm
  9. Applied add-sqr-sqrt0.8

    \[\leadsto \color{blue}{\left(\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \sqrt{\frac{1}{\sqrt{\log 10}}}\right)} \cdot \left(\tan^{-1}_* \frac{im}{re} \cdot \frac{1}{\sqrt{\log 10}}\right)\]
  10. Applied associate-*l*0.8

    \[\leadsto \color{blue}{\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\tan^{-1}_* \frac{im}{re} \cdot \frac{1}{\sqrt{\log 10}}\right)\right)}\]
  11. Simplified0.9

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \color{blue}{\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\frac{1}{\sqrt{\log 10}}}\right)}\]
  12. Using strategy rm
  13. Applied add-cube-cbrt0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\frac{1}{\color{blue}{\left(\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}\right) \cdot \sqrt[3]{\sqrt{\log 10}}}}}\right)\]
  14. Applied add-sqr-sqrt0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\left(\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}\right) \cdot \sqrt[3]{\sqrt{\log 10}}}}\right)\]
  15. Applied times-frac0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\color{blue}{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}} \cdot \frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}}\right)\]
  16. Applied sqrt-prod0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \color{blue}{\left(\sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}}} \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)}\right)\]
  17. Applied associate-*r*0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \color{blue}{\left(\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}}}\right) \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)}\]
  18. Simplified0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\color{blue}{\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \left|\frac{1}{\sqrt[3]{\sqrt{\log 10}}}\right|\right)} \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)\]
  19. Final simplification0.1

    \[\leadsto \sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \left|\frac{1}{\sqrt[3]{\sqrt{\log 10}}}\right|\right) \cdot \sqrt{\frac{\sqrt{1}}{\sqrt[3]{\sqrt{\log 10}}}}\right)\]

Reproduce

herbie shell --seed 2020042 +o rules:numerics
(FPCore (re im)
  :name "math.log10 on complex, imaginary part"
  :precision binary64
  (/ (atan2 im re) (log 10)))