\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r107968 = im;
double r107969 = re;
double r107970 = atan2(r107968, r107969);
return r107970;
}
double f(double re, double im) {
double r107971 = im;
double r107972 = re;
double r107973 = atan2(r107971, r107972);
return r107973;
}



Bits error versus re



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