\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r12288 = im;
double r12289 = re;
double r12290 = atan2(r12288, r12289);
return r12290;
}
double f(double re, double im) {
double r12291 = im;
double r12292 = re;
double r12293 = atan2(r12291, r12292);
return r12293;
}



Bits error versus re



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