\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40982 = im;
double r40983 = re;
double r40984 = atan2(r40982, r40983);
return r40984;
}
double f(double re, double im) {
double r40985 = im;
double r40986 = re;
double r40987 = atan2(r40985, r40986);
return r40987;
}



Bits error versus re



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