\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r36580 = im;
double r36581 = re;
double r36582 = atan2(r36580, r36581);
return r36582;
}
double f(double re, double im) {
double r36583 = im;
double r36584 = re;
double r36585 = atan2(r36583, r36584);
return r36585;
}



Bits error versus re



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