\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r34409 = im;
double r34410 = re;
double r34411 = atan2(r34409, r34410);
return r34411;
}
double f(double re, double im) {
double r34412 = im;
double r34413 = re;
double r34414 = atan2(r34412, r34413);
return r34414;
}



Bits error versus re



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