\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r51502 = im;
double r51503 = re;
double r51504 = atan2(r51502, r51503);
return r51504;
}
double f(double re, double im) {
double r51505 = im;
double r51506 = re;
double r51507 = atan2(r51505, r51506);
return r51507;
}



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