\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r8423 = im;
double r8424 = re;
double r8425 = atan2(r8423, r8424);
return r8425;
}
double f(double re, double im) {
double r8426 = im;
double r8427 = re;
double r8428 = atan2(r8426, r8427);
return r8428;
}



Bits error versus re



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