\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45733 = im;
double r45734 = re;
double r45735 = atan2(r45733, r45734);
return r45735;
}
double f(double re, double im) {
double r45736 = im;
double r45737 = re;
double r45738 = atan2(r45736, r45737);
return r45738;
}



Bits error versus re



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