\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r43258 = im;
double r43259 = re;
double r43260 = atan2(r43258, r43259);
return r43260;
}
double f(double re, double im) {
double r43261 = im;
double r43262 = re;
double r43263 = atan2(r43261, r43262);
return r43263;
}



Bits error versus re



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