\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r77218 = im;
double r77219 = re;
double r77220 = atan2(r77218, r77219);
return r77220;
}
double f(double re, double im) {
double r77221 = im;
double r77222 = re;
double r77223 = atan2(r77221, r77222);
return r77223;
}



Bits error versus re



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