\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r22579 = im;
double r22580 = re;
double r22581 = atan2(r22579, r22580);
return r22581;
}
double f(double re, double im) {
double r22582 = im;
double r22583 = re;
double r22584 = atan2(r22582, r22583);
return r22584;
}



Bits error versus re



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