\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r30023 = im;
double r30024 = re;
double r30025 = atan2(r30023, r30024);
return r30025;
}
double f(double re, double im) {
double r30026 = im;
double r30027 = re;
double r30028 = atan2(r30026, r30027);
return r30028;
}



Bits error versus re



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