\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r32744 = im;
double r32745 = re;
double r32746 = atan2(r32744, r32745);
return r32746;
}
double f(double re, double im) {
double r32747 = im;
double r32748 = re;
double r32749 = atan2(r32747, r32748);
return r32749;
}



Bits error versus re



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