\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r23345 = im;
double r23346 = re;
double r23347 = atan2(r23345, r23346);
return r23347;
}
double f(double re, double im) {
double r23348 = im;
double r23349 = re;
double r23350 = atan2(r23348, r23349);
return r23350;
}



Bits error versus re



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