\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r88881 = im;
double r88882 = re;
double r88883 = atan2(r88881, r88882);
return r88883;
}
double f(double re, double im) {
double r88884 = im;
double r88885 = re;
double r88886 = atan2(r88884, r88885);
return r88886;
}



Bits error versus re



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