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

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 clear-num_binary64_771.0

    \[\leadsto \color{blue}{\frac{1}{\frac{\log 10}{\tan^{-1}_* \frac{im}{re}}}}\]
  4. Using strategy rm
  5. Applied add-cube-cbrt_binary64_1130.9

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

    \[\leadsto \color{blue}{\frac{\frac{1}{\sqrt[3]{\frac{\log 10}{\tan^{-1}_* \frac{im}{re}}} \cdot \sqrt[3]{\frac{\log 10}{\tan^{-1}_* \frac{im}{re}}}}}{\sqrt[3]{\frac{\log 10}{\tan^{-1}_* \frac{im}{re}}}}}\]
  7. Final simplification0.7

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

Reproduce

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