\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r92976 = im;
double r92977 = re;
double r92978 = atan2(r92976, r92977);
return r92978;
}
double f(double re, double im) {
double r92979 = im;
double r92980 = re;
double r92981 = atan2(r92979, r92980);
return r92981;
}



Bits error versus re



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