\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r106422 = im;
double r106423 = re;
double r106424 = atan2(r106422, r106423);
return r106424;
}
double f(double re, double im) {
double r106425 = im;
double r106426 = re;
double r106427 = atan2(r106425, r106426);
return r106427;
}



Bits error versus re



Bits error versus im
Results
Initial program 0
Final simplification0
herbie shell --seed 2020020
(FPCore (re im)
:name "math.log/1 on complex, imaginary part"
:precision binary64
(atan2 im re))