\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r26933 = im;
double r26934 = re;
double r26935 = atan2(r26933, r26934);
return r26935;
}
double f(double re, double im) {
double r26936 = im;
double r26937 = re;
double r26938 = atan2(r26936, r26937);
return r26938;
}



Bits error versus re



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