\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r80619 = im;
double r80620 = re;
double r80621 = atan2(r80619, r80620);
return r80621;
}
double f(double re, double im) {
double r80622 = im;
double r80623 = re;
double r80624 = atan2(r80622, r80623);
return r80624;
}



Bits error versus re



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