\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r83080 = im;
double r83081 = re;
double r83082 = atan2(r83080, r83081);
return r83082;
}
double f(double re, double im) {
double r83083 = im;
double r83084 = re;
double r83085 = atan2(r83083, r83084);
return r83085;
}



Bits error versus re



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