\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r27989 = im;
double r27990 = re;
double r27991 = atan2(r27989, r27990);
return r27991;
}
double f(double re, double im) {
double r27992 = im;
double r27993 = re;
double r27994 = atan2(r27992, r27993);
return r27994;
}



Bits error versus re



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