\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r37194 = im;
double r37195 = re;
double r37196 = atan2(r37194, r37195);
return r37196;
}
double f(double re, double im) {
double r37197 = im;
double r37198 = re;
double r37199 = atan2(r37197, r37198);
return r37199;
}



Bits error versus re



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