\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r52762 = im;
double r52763 = re;
double r52764 = atan2(r52762, r52763);
return r52764;
}
double f(double re, double im) {
double r52765 = im;
double r52766 = re;
double r52767 = atan2(r52765, r52766);
return r52767;
}



Bits error versus re



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