\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}\begin{array}{l}
\mathbf{if}\;y.im \le 4.2951020985839212 \cdot 10^{83}:\\
\;\;\;\;\frac{\frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{y.re \cdot y.re + y.im \cdot y.im}}}{\sqrt{y.re \cdot y.re + y.im \cdot y.im}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1 \cdot x.re}{\sqrt{y.re \cdot y.re + y.im \cdot y.im}}\\
\end{array}double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (((x_46_im * y_46_re) - (x_46_re * y_46_im)) / ((y_46_re * y_46_re) + (y_46_im * y_46_im)));
}
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
double VAR;
if ((y_46_im <= 4.295102098583921e+83)) {
VAR = ((((x_46_im * y_46_re) - (x_46_re * y_46_im)) / sqrt(((y_46_re * y_46_re) + (y_46_im * y_46_im)))) / sqrt(((y_46_re * y_46_re) + (y_46_im * y_46_im))));
} else {
VAR = ((-1.0 * x_46_re) / sqrt(((y_46_re * y_46_re) + (y_46_im * y_46_im))));
}
return VAR;
}



Bits error versus x.re



Bits error versus x.im



Bits error versus y.re



Bits error versus y.im
Results
if y.im < 4.295102098583921e+83Initial program 23.2
rmApplied add-sqr-sqrt23.2
Applied associate-/r*23.1
if 4.295102098583921e+83 < y.im Initial program 38.6
rmApplied add-sqr-sqrt38.6
Applied associate-/r*38.6
Taylor expanded around 0 38.4
Final simplification26.0
herbie shell --seed 2020092
(FPCore (x.re x.im y.re y.im)
:name "_divideComplex, imaginary part"
:precision binary64
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im))))