\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r45524 = im;
double r45525 = re;
double r45526 = atan2(r45524, r45525);
return r45526;
}
double f(double re, double im) {
double r45527 = im;
double r45528 = re;
double r45529 = atan2(r45527, r45528);
return r45529;
}



Bits error versus re



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