\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40522 = im;
double r40523 = re;
double r40524 = atan2(r40522, r40523);
return r40524;
}
double f(double re, double im) {
double r40525 = im;
double r40526 = re;
double r40527 = atan2(r40525, r40526);
return r40527;
}



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))