\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r41136 = im;
double r41137 = re;
double r41138 = atan2(r41136, r41137);
return r41138;
}
double f(double re, double im) {
double r41139 = im;
double r41140 = re;
double r41141 = atan2(r41139, r41140);
return r41141;
}



Bits error versus re



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