\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r39829 = im;
double r39830 = re;
double r39831 = atan2(r39829, r39830);
return r39831;
}
double f(double re, double im) {
double r39832 = im;
double r39833 = re;
double r39834 = atan2(r39832, r39833);
return r39834;
}



Bits error versus re



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