\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r35642 = im;
double r35643 = re;
double r35644 = atan2(r35642, r35643);
return r35644;
}
double f(double re, double im) {
double r35645 = im;
double r35646 = re;
double r35647 = atan2(r35645, r35646);
return r35647;
}



Bits error versus re



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