\frac{\left(\frac{\left(x.re \cdot y.re\right)}{\left(x.im \cdot y.im\right)}\right)}{\left(\frac{\left(y.re \cdot y.re\right)}{\left(y.im \cdot y.im\right)}\right)}\frac{\left(\mathsf{qma}\left(\left(\left(x.re \cdot y.re\right)\right), x.im, y.im\right)\right)}{\left(\mathsf{qma}\left(\left(\left(y.re \cdot y.re\right)\right), y.im, y.im\right)\right)}double f(double x_re, double x_im, double y_re, double y_im) {
double r2088585 = x_re;
double r2088586 = y_re;
double r2088587 = r2088585 * r2088586;
double r2088588 = x_im;
double r2088589 = y_im;
double r2088590 = r2088588 * r2088589;
double r2088591 = r2088587 + r2088590;
double r2088592 = r2088586 * r2088586;
double r2088593 = r2088589 * r2088589;
double r2088594 = r2088592 + r2088593;
double r2088595 = r2088591 / r2088594;
return r2088595;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r2088596 = x_re;
double r2088597 = y_re;
double r2088598 = r2088596 * r2088597;
double r2088599 = /*Error: no posit support in C */;
double r2088600 = x_im;
double r2088601 = y_im;
double r2088602 = /*Error: no posit support in C */;
double r2088603 = /*Error: no posit support in C */;
double r2088604 = r2088597 * r2088597;
double r2088605 = /*Error: no posit support in C */;
double r2088606 = /*Error: no posit support in C */;
double r2088607 = /*Error: no posit support in C */;
double r2088608 = r2088603 / r2088607;
return r2088608;
}



Bits error versus x.re



Bits error versus x.im



Bits error versus y.re



Bits error versus y.im
Initial program 1.1
rmApplied introduce-quire1.1
Applied insert-quire-fdp-add1.1
rmApplied introduce-quire1.1
Applied insert-quire-fdp-add1.0
Final simplification1.0
herbie shell --seed 2019162 +o rules:numerics
(FPCore (x.re x.im y.re y.im)
:name "_divideComplex, real part"
(/.p16 (+.p16 (*.p16 x.re y.re) (*.p16 x.im y.im)) (+.p16 (*.p16 y.re y.re) (*.p16 y.im y.im))))