\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r83874 = im;
double r83875 = re;
double r83876 = atan2(r83874, r83875);
return r83876;
}
double f(double re, double im) {
double r83877 = im;
double r83878 = re;
double r83879 = atan2(r83877, r83878);
return r83879;
}



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))