\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\left(\sqrt[3]{1} \cdot \frac{\sqrt[3]{1}}{\sqrt{\log 10}}\right) \cdot \left(\frac{\sqrt[3]{1}}{\sqrt{\log 10}} \cdot \tan^{-1}_* \frac{im}{re}\right)(FPCore (re im) :precision binary64 (/ (atan2 im re) (log 10.0)))
(FPCore (re im) :precision binary64 (* (* (cbrt 1.0) (/ (cbrt 1.0) (sqrt (log 10.0)))) (* (/ (cbrt 1.0) (sqrt (log 10.0))) (atan2 im re))))
double code(double re, double im) {
return (((double) atan2(im, re)) / ((double) log(10.0)));
}
double code(double re, double im) {
return ((double) (((double) (((double) cbrt(1.0)) * (((double) cbrt(1.0)) / ((double) sqrt(((double) log(10.0))))))) * ((double) ((((double) cbrt(1.0)) / ((double) sqrt(((double) log(10.0))))) * ((double) atan2(im, re))))));
}



Bits error versus re



Bits error versus im
Results
Initial program Error: 0.8 bits
rmApplied clear-numError: 1.0 bits
rmApplied *-un-lft-identityError: 1.0 bits
Applied add-sqr-sqrtError: 1.0 bits
Applied times-fracError: 1.1 bits
Applied add-cube-cbrtError: 1.1 bits
Applied times-fracError: 1.0 bits
SimplifiedError: 1.0 bits
SimplifiedError: 0.8 bits
Final simplificationError: 0.8 bits
herbie shell --seed 2020203
(FPCore (re im)
:name "math.log10 on complex, imaginary part"
:precision binary64
(/ (atan2 im re) (log 10.0)))