\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 r4617149 = x_re;
double r4617150 = y_re;
double r4617151 = r4617149 * r4617150;
double r4617152 = x_im;
double r4617153 = y_im;
double r4617154 = r4617152 * r4617153;
double r4617155 = r4617151 + r4617154;
double r4617156 = r4617150 * r4617150;
double r4617157 = r4617153 * r4617153;
double r4617158 = r4617156 + r4617157;
double r4617159 = r4617155 / r4617158;
return r4617159;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r4617160 = x_re;
double r4617161 = y_re;
double r4617162 = r4617160 * r4617161;
double r4617163 = /*Error: no posit support in C */;
double r4617164 = x_im;
double r4617165 = y_im;
double r4617166 = /*Error: no posit support in C */;
double r4617167 = /*Error: no posit support in C */;
double r4617168 = r4617161 * r4617161;
double r4617169 = /*Error: no posit support in C */;
double r4617170 = /*Error: no posit support in C */;
double r4617171 = /*Error: no posit support in C */;
double r4617172 = r4617167 / r4617171;
return r4617172;
}



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