\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r8221 = im;
double r8222 = re;
double r8223 = atan2(r8221, r8222);
return r8223;
}
double f(double re, double im) {
double r8224 = im;
double r8225 = re;
double r8226 = atan2(r8224, r8225);
return r8226;
}



Bits error versus re



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