\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r52982 = im;
double r52983 = re;
double r52984 = atan2(r52982, r52983);
return r52984;
}
double f(double re, double im) {
double r52985 = im;
double r52986 = re;
double r52987 = atan2(r52985, r52986);
return r52987;
}



Bits error versus re



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