\tan^{-1}_* \frac{im}{re}\tan^{-1}_* \frac{im}{re}double f(double re, double im) {
double r24483 = im;
double r24484 = re;
double r24485 = atan2(r24483, r24484);
return r24485;
}
double f(double re, double im) {
double r24486 = im;
double r24487 = re;
double r24488 = atan2(r24486, r24487);
return r24488;
}



Bits error versus re



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