\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r39088 = im;
double r39089 = re;
double r39090 = atan2(r39088, r39089);
return r39090;
}
double f(double re, double im) {
double r39091 = im;
double r39092 = re;
double r39093 = atan2(r39091, r39092);
return r39093;
}



Bits error versus re



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