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



Bits error versus re



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