\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r25764 = im;
double r25765 = re;
double r25766 = atan2(r25764, r25765);
return r25766;
}
double f(double re, double im) {
double r25767 = im;
double r25768 = re;
double r25769 = atan2(r25767, r25768);
return r25769;
}



Bits error versus re



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