\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40238 = im;
double r40239 = re;
double r40240 = atan2(r40238, r40239);
return r40240;
}
double f(double re, double im) {
double r40241 = im;
double r40242 = re;
double r40243 = atan2(r40241, r40242);
return r40243;
}



Bits error versus re



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