\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 r1591843 = x_re;
double r1591844 = y_re;
double r1591845 = r1591843 * r1591844;
double r1591846 = x_im;
double r1591847 = y_im;
double r1591848 = r1591846 * r1591847;
double r1591849 = r1591845 + r1591848;
double r1591850 = r1591844 * r1591844;
double r1591851 = r1591847 * r1591847;
double r1591852 = r1591850 + r1591851;
double r1591853 = r1591849 / r1591852;
return r1591853;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r1591854 = x_re;
double r1591855 = y_re;
double r1591856 = r1591854 * r1591855;
double r1591857 = /*Error: no posit support in C */;
double r1591858 = x_im;
double r1591859 = y_im;
double r1591860 = /*Error: no posit support in C */;
double r1591861 = /*Error: no posit support in C */;
double r1591862 = r1591855 * r1591855;
double r1591863 = /*Error: no posit support in C */;
double r1591864 = /*Error: no posit support in C */;
double r1591865 = /*Error: no posit support in C */;
double r1591866 = r1591861 / r1591865;
return r1591866;
}



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