\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r43567 = im;
double r43568 = re;
double r43569 = atan2(r43567, r43568);
return r43569;
}
double f(double re, double im) {
double r43570 = im;
double r43571 = re;
double r43572 = atan2(r43570, r43571);
return r43572;
}



Bits error versus re



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