\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r93017 = im;
double r93018 = re;
double r93019 = atan2(r93017, r93018);
return r93019;
}
double f(double re, double im) {
double r93020 = im;
double r93021 = re;
double r93022 = atan2(r93020, r93021);
return r93022;
}



Bits error versus re



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