\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r32901 = im;
double r32902 = re;
double r32903 = atan2(r32901, r32902);
return r32903;
}
double f(double re, double im) {
double r32904 = im;
double r32905 = re;
double r32906 = atan2(r32904, r32905);
return r32906;
}



Bits error versus re



Bits error versus im
Results
Initial program 0
Final simplification0
herbie shell --seed 2020043
(FPCore (re im)
:name "math.log/1 on complex, imaginary part"
:precision binary64
(atan2 im re))