\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r88007 = im;
double r88008 = re;
double r88009 = atan2(r88007, r88008);
return r88009;
}
double f(double re, double im) {
double r88010 = im;
double r88011 = re;
double r88012 = atan2(r88010, r88011);
return r88012;
}



Bits error versus re



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