\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r43298 = im;
double r43299 = re;
double r43300 = atan2(r43298, r43299);
return r43300;
}
double f(double re, double im) {
double r43301 = im;
double r43302 = re;
double r43303 = atan2(r43301, r43302);
return r43303;
}



Bits error versus re



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