\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r42280 = im;
double r42281 = re;
double r42282 = atan2(r42280, r42281);
return r42282;
}
double f(double re, double im) {
double r42283 = im;
double r42284 = re;
double r42285 = atan2(r42283, r42284);
return r42285;
}



Bits error versus re



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