\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r46943 = im;
double r46944 = re;
double r46945 = atan2(r46943, r46944);
return r46945;
}
double f(double re, double im) {
double r46946 = im;
double r46947 = re;
double r46948 = atan2(r46946, r46947);
return r46948;
}



Bits error versus re



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