\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r55158 = im;
double r55159 = re;
double r55160 = atan2(r55158, r55159);
return r55160;
}
double f(double re, double im) {
double r55161 = im;
double r55162 = re;
double r55163 = atan2(r55161, r55162);
return r55163;
}



Bits error versus re



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