\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r64963 = im;
double r64964 = re;
double r64965 = atan2(r64963, r64964);
return r64965;
}
double f(double re, double im) {
double r64966 = im;
double r64967 = re;
double r64968 = atan2(r64966, r64967);
return r64968;
}



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))