\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r44700 = im;
double r44701 = re;
double r44702 = atan2(r44700, r44701);
return r44702;
}
double f(double re, double im) {
double r44703 = im;
double r44704 = re;
double r44705 = atan2(r44703, r44704);
return r44705;
}



Bits error versus re



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