\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r21121 = im;
double r21122 = re;
double r21123 = atan2(r21121, r21122);
return r21123;
}
double f(double re, double im) {
double r21124 = im;
double r21125 = re;
double r21126 = atan2(r21124, r21125);
return r21126;
}



Bits error versus re



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