\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r100569 = im;
double r100570 = re;
double r100571 = atan2(r100569, r100570);
return r100571;
}
double f(double re, double im) {
double r100572 = im;
double r100573 = re;
double r100574 = atan2(r100572, r100573);
return r100574;
}



Bits error versus re



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