\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r39276 = im;
double r39277 = re;
double r39278 = atan2(r39276, r39277);
return r39278;
}
double f(double re, double im) {
double r39279 = im;
double r39280 = re;
double r39281 = atan2(r39279, r39280);
return r39281;
}



Bits error versus re



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