\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r100302 = im;
double r100303 = re;
double r100304 = atan2(r100302, r100303);
return r100304;
}
double f(double re, double im) {
double r100305 = im;
double r100306 = re;
double r100307 = atan2(r100305, r100306);
return r100307;
}



Bits error versus re



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