\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\frac{1}{\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}}}}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)))));
}



Bits error versus re



Bits error versus im
Results
Initial program 0.8
rmApplied clear-num1.0
rmApplied add-cube-cbrt0.9
Final simplification0.9
herbie shell --seed 2020057 +o rules:numerics
(FPCore (re im)
:name "math.log10 on complex, imaginary part"
:precision binary64
(/ (atan2 im re) (log 10)))