\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r36241 = im;
double r36242 = re;
double r36243 = atan2(r36241, r36242);
return r36243;
}
double f(double re, double im) {
double r36244 = im;
double r36245 = re;
double r36246 = atan2(r36244, r36245);
return r36246;
}



Bits error versus re



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