\frac{\tan^{-1}_* \frac{im}{re}}{\log 10}\frac{1}{\frac{\log 10}{\tan^{-1}_* \frac{im}{re}}}double f(double re, double im) {
double r34655 = im;
double r34656 = re;
double r34657 = atan2(r34655, r34656);
double r34658 = 10.0;
double r34659 = log(r34658);
double r34660 = r34657 / r34659;
return r34660;
}
double f(double re, double im) {
double r34661 = 1.0;
double r34662 = 10.0;
double r34663 = log(r34662);
double r34664 = im;
double r34665 = re;
double r34666 = atan2(r34664, r34665);
double r34667 = r34663 / r34666;
double r34668 = r34661 / r34667;
return r34668;
}



Bits error versus re



Bits error versus im
Results
Initial program 0.9
rmApplied add-sqr-sqrt0.9
Applied *-un-lft-identity0.9
Applied times-frac0.8
rmApplied div-inv0.8
rmApplied add-sqr-sqrt0.8
Applied associate-*r*0.8
rmApplied add-sqr-sqrt0.8
Applied sqrt-prod0.1
Applied associate-*r*0.1
Final simplification1.0
herbie shell --seed 2019303
(FPCore (re im)
:name "math.log10 on complex, imaginary part"
:precision binary64
(/ (atan2 im re) (log 10)))