\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r21218 = im;
double r21219 = re;
double r21220 = atan2(r21218, r21219);
return r21220;
}
double f(double re, double im) {
double r21221 = im;
double r21222 = re;
double r21223 = atan2(r21221, r21222);
return r21223;
}



Bits error versus re



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