\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r30819 = im;
double r30820 = re;
double r30821 = atan2(r30819, r30820);
return r30821;
}
double f(double re, double im) {
double r30822 = im;
double r30823 = re;
double r30824 = atan2(r30822, r30823);
return r30824;
}



Bits error versus re



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