\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r24468 = im;
double r24469 = re;
double r24470 = atan2(r24468, r24469);
return r24470;
}
double f(double re, double im) {
double r24471 = im;
double r24472 = re;
double r24473 = atan2(r24471, r24472);
return r24473;
}



Bits error versus re



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