\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r81549 = im;
double r81550 = re;
double r81551 = atan2(r81549, r81550);
return r81551;
}
double f(double re, double im) {
double r81552 = im;
double r81553 = re;
double r81554 = atan2(r81552, r81553);
return r81554;
}



Bits error versus re



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