\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 r429030 = x_re;
double r429031 = y_re;
double r429032 = r429030 * r429031;
double r429033 = x_im;
double r429034 = y_im;
double r429035 = r429033 * r429034;
double r429036 = r429032 + r429035;
double r429037 = r429031 * r429031;
double r429038 = r429034 * r429034;
double r429039 = r429037 + r429038;
double r429040 = r429036 / r429039;
return r429040;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r429041 = x_re;
double r429042 = y_re;
double r429043 = r429041 * r429042;
double r429044 = /*Error: no posit support in C */;
double r429045 = x_im;
double r429046 = y_im;
double r429047 = /*Error: no posit support in C */;
double r429048 = /*Error: no posit support in C */;
double r429049 = r429042 * r429042;
double r429050 = /*Error: no posit support in C */;
double r429051 = /*Error: no posit support in C */;
double r429052 = /*Error: no posit support in C */;
double r429053 = r429048 / r429052;
return r429053;
}



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