\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r46013 = im;
double r46014 = re;
double r46015 = atan2(r46013, r46014);
return r46015;
}
double f(double re, double im) {
double r46016 = im;
double r46017 = re;
double r46018 = atan2(r46016, r46017);
return r46018;
}



Bits error versus re



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