\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r86550 = im;
double r86551 = re;
double r86552 = atan2(r86550, r86551);
return r86552;
}
double f(double re, double im) {
double r86553 = im;
double r86554 = re;
double r86555 = atan2(r86553, r86554);
return r86555;
}



Bits error versus re



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