\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r88907 = im;
double r88908 = re;
double r88909 = atan2(r88907, r88908);
return r88909;
}
double f(double re, double im) {
double r88910 = im;
double r88911 = re;
double r88912 = atan2(r88910, r88911);
return r88912;
}



Bits error versus re



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