\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r37980 = im;
double r37981 = re;
double r37982 = atan2(r37980, r37981);
return r37982;
}
double f(double re, double im) {
double r37983 = im;
double r37984 = re;
double r37985 = atan2(r37983, r37984);
return r37985;
}



Bits error versus re



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