\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40617 = im;
double r40618 = re;
double r40619 = atan2(r40617, r40618);
return r40619;
}
double f(double re, double im) {
double r40620 = im;
double r40621 = re;
double r40622 = atan2(r40620, r40621);
return r40622;
}



Bits error versus re



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