\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r51413 = im;
double r51414 = re;
double r51415 = atan2(r51413, r51414);
return r51415;
}
double f(double re, double im) {
double r51416 = im;
double r51417 = re;
double r51418 = atan2(r51416, r51417);
return r51418;
}



Bits error versus re



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