\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r38607 = im;
double r38608 = re;
double r38609 = atan2(r38607, r38608);
return r38609;
}
double f(double re, double im) {
double r38610 = im;
double r38611 = re;
double r38612 = atan2(r38610, r38611);
return r38612;
}



Bits error versus re



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