\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r33216 = im;
double r33217 = re;
double r33218 = atan2(r33216, r33217);
return r33218;
}
double f(double re, double im) {
double r33219 = im;
double r33220 = re;
double r33221 = atan2(r33219, r33220);
return r33221;
}



Bits error versus re



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