\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r37222 = im;
double r37223 = re;
double r37224 = atan2(r37222, r37223);
return r37224;
}
double f(double re, double im) {
double r37225 = im;
double r37226 = re;
double r37227 = atan2(r37225, r37226);
return r37227;
}



Bits error versus re



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