\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double code(double re, double im) {
return atan2(im, re);
}
double code(double re, double im) {
return atan2(im, re);
}



Bits error versus re



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