\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r100492 = im;
double r100493 = re;
double r100494 = atan2(r100492, r100493);
return r100494;
}
double f(double re, double im) {
double r100495 = im;
double r100496 = re;
double r100497 = atan2(r100495, r100496);
return r100497;
}



Bits error versus re



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