\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r92592 = im;
double r92593 = re;
double r92594 = atan2(r92592, r92593);
return r92594;
}
double f(double re, double im) {
double r92595 = im;
double r92596 = re;
double r92597 = atan2(r92595, r92596);
return r92597;
}



Bits error versus re



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