\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40196 = im;
double r40197 = re;
double r40198 = atan2(r40196, r40197);
return r40198;
}
double f(double re, double im) {
double r40199 = im;
double r40200 = re;
double r40201 = atan2(r40199, r40200);
return r40201;
}



Bits error versus re



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