\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45641 = im;
double r45642 = re;
double r45643 = atan2(r45641, r45642);
return r45643;
}
double f(double re, double im) {
double r45644 = im;
double r45645 = re;
double r45646 = atan2(r45644, r45645);
return r45646;
}



Bits error versus re



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