\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 r1516403 = x_re;
double r1516404 = y_re;
double r1516405 = r1516403 * r1516404;
double r1516406 = x_im;
double r1516407 = y_im;
double r1516408 = r1516406 * r1516407;
double r1516409 = r1516405 + r1516408;
double r1516410 = r1516404 * r1516404;
double r1516411 = r1516407 * r1516407;
double r1516412 = r1516410 + r1516411;
double r1516413 = r1516409 / r1516412;
return r1516413;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r1516414 = x_re;
double r1516415 = y_re;
double r1516416 = r1516414 * r1516415;
double r1516417 = /*Error: no posit support in C */;
double r1516418 = x_im;
double r1516419 = y_im;
double r1516420 = /*Error: no posit support in C */;
double r1516421 = /*Error: no posit support in C */;
double r1516422 = r1516415 * r1516415;
double r1516423 = /*Error: no posit support in C */;
double r1516424 = /*Error: no posit support in C */;
double r1516425 = /*Error: no posit support in C */;
double r1516426 = r1516421 / r1516425;
return r1516426;
}



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
(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))))