\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r53787 = im;
double r53788 = re;
double r53789 = atan2(r53787, r53788);
return r53789;
}
double f(double re, double im) {
double r53790 = im;
double r53791 = re;
double r53792 = atan2(r53790, r53791);
return r53792;
}



Bits error versus re



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