\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r192 = im;
double r193 = re;
double r194 = atan2(r192, r193);
return r194;
}
double f(double re, double im) {
double r195 = im;
double r196 = re;
double r197 = atan2(r195, r196);
return r197;
}



Bits error versus re



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