\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r216 = im;
double r217 = re;
double r218 = atan2(r216, r217);
return r218;
}
double f(double re, double im) {
double r219 = im;
double r220 = re;
double r221 = atan2(r219, r220);
return r221;
}



Bits error versus re



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