\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r46829 = im;
double r46830 = re;
double r46831 = atan2(r46829, r46830);
return r46831;
}
double f(double re, double im) {
double r46832 = im;
double r46833 = re;
double r46834 = atan2(r46832, r46833);
return r46834;
}



Bits error versus re



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