\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r78520 = im;
double r78521 = re;
double r78522 = atan2(r78520, r78521);
return r78522;
}
double f(double re, double im) {
double r78523 = im;
double r78524 = re;
double r78525 = atan2(r78523, r78524);
return r78525;
}



Bits error versus re



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