\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r77686 = im;
double r77687 = re;
double r77688 = atan2(r77686, r77687);
return r77688;
}
double f(double re, double im) {
double r77689 = im;
double r77690 = re;
double r77691 = atan2(r77689, r77690);
return r77691;
}



Bits error versus re



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