\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45537 = im;
double r45538 = re;
double r45539 = atan2(r45537, r45538);
return r45539;
}
double f(double re, double im) {
double r45540 = im;
double r45541 = re;
double r45542 = atan2(r45540, r45541);
return r45542;
}



Bits error versus re



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