\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r40213 = im;
double r40214 = re;
double r40215 = atan2(r40213, r40214);
return r40215;
}
double f(double re, double im) {
double r40216 = im;
double r40217 = re;
double r40218 = atan2(r40216, r40217);
return r40218;
}



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))