\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r95168 = im;
double r95169 = re;
double r95170 = atan2(r95168, r95169);
return r95170;
}
double f(double re, double im) {
double r95171 = im;
double r95172 = re;
double r95173 = atan2(r95171, r95172);
return r95173;
}



Bits error versus re



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