\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r31012 = im;
double r31013 = re;
double r31014 = atan2(r31012, r31013);
return r31014;
}
double f(double re, double im) {
double r31015 = im;
double r31016 = re;
double r31017 = atan2(r31015, r31016);
return r31017;
}



Bits error versus re



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