\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\sqrt{\frac{1}{\sqrt[3]{\sqrt{\log 10}} \cdot \sqrt[3]{\sqrt{\log 10}}}} \cdot \left(\sqrt{\frac{1}{\sqrt[3]{\sqrt{\log 10}}}} \cdot \left(\frac{\tan^{-1}_* \frac{im}{re}}{\sqrt{\log 10}} \cdot \sqrt{\frac{1}{\sqrt{\log 10}}}\right)\right)(FPCore (re im) :precision binary64 (/ (atan2 im re) (log 10.0)))
(FPCore (re im) :precision binary64 (* (sqrt (/ 1.0 (* (cbrt (sqrt (log 10.0))) (cbrt (sqrt (log 10.0)))))) (* (sqrt (/ 1.0 (cbrt (sqrt (log 10.0))))) (* (/ (atan2 im re) (sqrt (log 10.0))) (sqrt (/ 1.0 (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(1.0 / (cbrt(sqrt(log(10.0))) * cbrt(sqrt(log(10.0))))) * (sqrt(1.0 / cbrt(sqrt(log(10.0)))) * ((atan2(im, re) / sqrt(log(10.0))) * sqrt(1.0 / sqrt(log(10.0)))));
}



Bits error versus re



Bits error versus im
Results
Initial program 0.9
rmApplied add-sqr-sqrt_binary64_1000.9
Applied *-un-lft-identity_binary64_780.9
Applied times-frac_binary64_840.8
rmApplied add-sqr-sqrt_binary64_1000.8
Applied associate-*l*_binary64_190.9
Simplified0.9
rmApplied add-cube-cbrt_binary64_1130.1
Applied *-un-lft-identity_binary64_780.1
Applied times-frac_binary64_840.1
Applied sqrt-prod_binary64_940.1
Applied associate-*l*_binary64_190.1
Final simplification0.1
herbie shell --seed 2021060
(FPCore (re im)
:name "math.log10 on complex, imaginary part"
:precision binary64
(/ (atan2 im re) (log 10.0)))