\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r80380 = im;
double r80381 = re;
double r80382 = atan2(r80380, r80381);
return r80382;
}
double f(double re, double im) {
double r80383 = im;
double r80384 = re;
double r80385 = atan2(r80383, r80384);
return r80385;
}



Bits error versus re



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