\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r56973 = im;
double r56974 = re;
double r56975 = atan2(r56973, r56974);
return r56975;
}
double f(double re, double im) {
double r56976 = im;
double r56977 = re;
double r56978 = atan2(r56976, r56977);
return r56978;
}



Bits error versus re



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