\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r46604 = im;
double r46605 = re;
double r46606 = atan2(r46604, r46605);
return r46606;
}
double f(double re, double im) {
double r46607 = im;
double r46608 = re;
double r46609 = atan2(r46607, r46608);
return r46609;
}



Bits error versus re



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