\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r52025 = im;
double r52026 = re;
double r52027 = atan2(r52025, r52026);
return r52027;
}
double f(double re, double im) {
double r52028 = im;
double r52029 = re;
double r52030 = atan2(r52028, r52029);
return r52030;
}



Bits error versus re



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