\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r28177 = im;
double r28178 = re;
double r28179 = atan2(r28177, r28178);
return r28179;
}
double f(double re, double im) {
double r28180 = im;
double r28181 = re;
double r28182 = atan2(r28180, r28181);
return r28182;
}



Bits error versus re



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