\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r31348 = im;
double r31349 = re;
double r31350 = atan2(r31348, r31349);
return r31350;
}
double f(double re, double im) {
double r31351 = im;
double r31352 = re;
double r31353 = atan2(r31351, r31352);
return r31353;
}



Bits error versus re



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