\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r44217 = im;
double r44218 = re;
double r44219 = atan2(r44217, r44218);
return r44219;
}
double f(double re, double im) {
double r44220 = im;
double r44221 = re;
double r44222 = atan2(r44220, r44221);
return r44222;
}



Bits error versus re



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