\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r81870 = im;
double r81871 = re;
double r81872 = atan2(r81870, r81871);
return r81872;
}
double f(double re, double im) {
double r81873 = im;
double r81874 = re;
double r81875 = atan2(r81873, r81874);
return r81875;
}



Bits error versus re



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