\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r31064 = im;
double r31065 = re;
double r31066 = atan2(r31064, r31065);
return r31066;
}
double f(double re, double im) {
double r31067 = im;
double r31068 = re;
double r31069 = atan2(r31067, r31068);
return r31069;
}



Bits error versus re



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