\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 r2309393 = x_re;
double r2309394 = y_re;
double r2309395 = r2309393 * r2309394;
double r2309396 = x_im;
double r2309397 = y_im;
double r2309398 = r2309396 * r2309397;
double r2309399 = r2309395 + r2309398;
double r2309400 = r2309394 * r2309394;
double r2309401 = r2309397 * r2309397;
double r2309402 = r2309400 + r2309401;
double r2309403 = r2309399 / r2309402;
return r2309403;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r2309404 = x_re;
double r2309405 = y_re;
double r2309406 = r2309404 * r2309405;
double r2309407 = /*Error: no posit support in C */;
double r2309408 = x_im;
double r2309409 = y_im;
double r2309410 = /*Error: no posit support in C */;
double r2309411 = /*Error: no posit support in C */;
double r2309412 = r2309405 * r2309405;
double r2309413 = /*Error: no posit support in C */;
double r2309414 = /*Error: no posit support in C */;
double r2309415 = /*Error: no posit support in C */;
double r2309416 = r2309411 / r2309415;
return r2309416;
}



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