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



Bits error versus re



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