\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45943 = im;
double r45944 = re;
double r45945 = atan2(r45943, r45944);
return r45945;
}
double f(double re, double im) {
double r45946 = im;
double r45947 = re;
double r45948 = atan2(r45946, r45947);
return r45948;
}



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))