\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r44281 = im;
double r44282 = re;
double r44283 = atan2(r44281, r44282);
return r44283;
}
double f(double re, double im) {
double r44284 = im;
double r44285 = re;
double r44286 = atan2(r44284, r44285);
return r44286;
}



Bits error versus re



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