\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r34297 = im;
double r34298 = re;
double r34299 = atan2(r34297, r34298);
return r34299;
}
double f(double re, double im) {
double r34300 = im;
double r34301 = re;
double r34302 = atan2(r34300, r34301);
return r34302;
}



Bits error versus re



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