\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r102087 = im;
double r102088 = re;
double r102089 = atan2(r102087, r102088);
return r102089;
}
double f(double re, double im) {
double r102090 = im;
double r102091 = re;
double r102092 = atan2(r102090, r102091);
return r102092;
}



Bits error versus re



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