\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r47744 = im;
double r47745 = re;
double r47746 = atan2(r47744, r47745);
return r47746;
}
double f(double re, double im) {
double r47747 = im;
double r47748 = re;
double r47749 = atan2(r47747, r47748);
return r47749;
}



Bits error versus re



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