Average Error: 0.8 → 0.1
Time: 5.8s
Precision: binary64
\[\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\]
\[\sqrt{\sqrt{\frac{1}{\sqrt{\log 10}}}} \cdot \left(\sqrt{\sqrt{\frac{1}{\sqrt{\log 10}}}} \cdot \left(\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}}\right)\right)\]
\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}
\sqrt{\sqrt{\frac{1}{\sqrt{\log 10}}}} \cdot \left(\sqrt{\sqrt{\frac{1}{\sqrt{\log 10}}}} \cdot \left(\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}}\right)\right)
(FPCore (re im) :precision binary64 (/ (atan2 im re) (log 10.0)))
(FPCore (re im)
 :precision binary64
 (*
  (sqrt (sqrt (/ 1.0 (sqrt (log 10.0)))))
  (*
   (sqrt (sqrt (/ 1.0 (sqrt (log 10.0)))))
   (* (sqrt (/ 1.0 (sqrt (log 10.0)))) (/ (atan2 im re) (sqrt (log 10.0)))))))
double code(double re, double im) {
	return atan2(im, re) / log(10.0);
}
double code(double re, double im) {
	return sqrt(sqrt(1.0 / sqrt(log(10.0)))) * (sqrt(sqrt(1.0 / sqrt(log(10.0)))) * (sqrt(1.0 / sqrt(log(10.0))) * (atan2(im, re) / sqrt(log(10.0)))));
}

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-sqrt_binary64_7820.8

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

    \[\leadsto \frac{\color{blue}{1 \cdot \tan^{-1}_* \frac{im}{re}}}{\sqrt{\log 10} \cdot \sqrt{\log 10}}\]
  5. Applied times-frac_binary64_7660.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 add-sqr-sqrt_binary64_7820.8

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

    \[\leadsto \color{blue}{\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \left(\sqrt{\frac{1}{\sqrt{\log 10}}} \cdot \frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}}\right)}\]
  9. 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)}\]
  10. Using strategy rm
  11. Applied add-sqr-sqrt_binary64_7820.1

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

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

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

Reproduce

herbie shell --seed 2021028 
(FPCore (re im)
  :name "math.log10 on complex, imaginary part"
  :precision binary64
  (/ (atan2 im re) (log 10.0)))