\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r36793 = im;
double r36794 = re;
double r36795 = atan2(r36793, r36794);
return r36795;
}
double f(double re, double im) {
double r36796 = im;
double r36797 = re;
double r36798 = atan2(r36796, r36797);
return r36798;
}



Bits error versus re



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