\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r57030 = im;
double r57031 = re;
double r57032 = atan2(r57030, r57031);
return r57032;
}
double f(double re, double im) {
double r57033 = im;
double r57034 = re;
double r57035 = atan2(r57033, r57034);
return r57035;
}



Bits error versus re



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