\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 r2437890 = x_re;
double r2437891 = y_re;
double r2437892 = r2437890 * r2437891;
double r2437893 = x_im;
double r2437894 = y_im;
double r2437895 = r2437893 * r2437894;
double r2437896 = r2437892 + r2437895;
double r2437897 = r2437891 * r2437891;
double r2437898 = r2437894 * r2437894;
double r2437899 = r2437897 + r2437898;
double r2437900 = r2437896 / r2437899;
return r2437900;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r2437901 = x_re;
double r2437902 = y_re;
double r2437903 = r2437901 * r2437902;
double r2437904 = /*Error: no posit support in C */;
double r2437905 = x_im;
double r2437906 = y_im;
double r2437907 = /*Error: no posit support in C */;
double r2437908 = /*Error: no posit support in C */;
double r2437909 = r2437902 * r2437902;
double r2437910 = /*Error: no posit support in C */;
double r2437911 = /*Error: no posit support in C */;
double r2437912 = /*Error: no posit support in C */;
double r2437913 = r2437908 / r2437912;
return r2437913;
}



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.0
rmApplied introduce-quire1.0
Applied insert-quire-fdp-add1.0
Final simplification1.0
herbie shell --seed 2019165
(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))))