\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r26217 = im;
double r26218 = re;
double r26219 = atan2(r26217, r26218);
return r26219;
}
double f(double re, double im) {
double r26220 = im;
double r26221 = re;
double r26222 = atan2(r26220, r26221);
return r26222;
}



Bits error versus re



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