\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45906 = im;
double r45907 = re;
double r45908 = atan2(r45906, r45907);
return r45908;
}
double f(double re, double im) {
double r45909 = im;
double r45910 = re;
double r45911 = atan2(r45909, r45910);
return r45911;
}



Bits error versus re



Bits error versus im
Results
Initial program 0
Final simplification0
herbie shell --seed 2020036 +o rules:numerics
(FPCore (re im)
:name "math.arg on complex"
:precision binary64
(atan2 im re))