\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r50600 = im;
double r50601 = re;
double r50602 = atan2(r50600, r50601);
return r50602;
}
double f(double re, double im) {
double r50603 = im;
double r50604 = re;
double r50605 = atan2(r50603, r50604);
return r50605;
}



Bits error versus re



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