\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r26159 = im;
double r26160 = re;
double r26161 = atan2(r26159, r26160);
return r26161;
}
double f(double re, double im) {
double r26162 = im;
double r26163 = re;
double r26164 = atan2(r26162, r26163);
return r26164;
}



Bits error versus re



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