\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r90862 = im;
double r90863 = re;
double r90864 = atan2(r90862, r90863);
return r90864;
}
double f(double re, double im) {
double r90865 = im;
double r90866 = re;
double r90867 = atan2(r90865, r90866);
return r90867;
}



Bits error versus re



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