\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r109923 = im;
double r109924 = re;
double r109925 = atan2(r109923, r109924);
return r109925;
}
double f(double re, double im) {
double r109926 = im;
double r109927 = re;
double r109928 = atan2(r109926, r109927);
return r109928;
}



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))