\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 r2327788 = x_re;
double r2327789 = y_re;
double r2327790 = r2327788 * r2327789;
double r2327791 = x_im;
double r2327792 = y_im;
double r2327793 = r2327791 * r2327792;
double r2327794 = r2327790 + r2327793;
double r2327795 = r2327789 * r2327789;
double r2327796 = r2327792 * r2327792;
double r2327797 = r2327795 + r2327796;
double r2327798 = r2327794 / r2327797;
return r2327798;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r2327799 = x_re;
double r2327800 = y_re;
double r2327801 = r2327799 * r2327800;
double r2327802 = /*Error: no posit support in C */;
double r2327803 = x_im;
double r2327804 = y_im;
double r2327805 = /*Error: no posit support in C */;
double r2327806 = /*Error: no posit support in C */;
double r2327807 = r2327800 * r2327800;
double r2327808 = /*Error: no posit support in C */;
double r2327809 = /*Error: no posit support in C */;
double r2327810 = /*Error: no posit support in C */;
double r2327811 = r2327806 / r2327810;
return r2327811;
}



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