\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r50228 = im;
double r50229 = re;
double r50230 = atan2(r50228, r50229);
return r50230;
}
double f(double re, double im) {
double r50231 = im;
double r50232 = re;
double r50233 = atan2(r50231, r50232);
return r50233;
}



Bits error versus re



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