\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r89999 = im;
double r90000 = re;
double r90001 = atan2(r89999, r90000);
return r90001;
}
double f(double re, double im) {
double r90002 = im;
double r90003 = re;
double r90004 = atan2(r90002, r90003);
return r90004;
}



Bits error versus re



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