\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r35255 = im;
double r35256 = re;
double r35257 = atan2(r35255, r35256);
return r35257;
}
double f(double re, double im) {
double r35258 = im;
double r35259 = re;
double r35260 = atan2(r35258, r35259);
return r35260;
}



Bits error versus re



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