\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45712 = im;
double r45713 = re;
double r45714 = atan2(r45712, r45713);
return r45714;
}
double f(double re, double im) {
double r45715 = im;
double r45716 = re;
double r45717 = atan2(r45715, r45716);
return r45717;
}



Bits error versus re



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