\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r28069 = im;
double r28070 = re;
double r28071 = atan2(r28069, r28070);
return r28071;
}
double f(double re, double im) {
double r28072 = im;
double r28073 = re;
double r28074 = atan2(r28072, r28073);
return r28074;
}



Bits error versus re



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