\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 r2280430 = x_re;
double r2280431 = y_re;
double r2280432 = r2280430 * r2280431;
double r2280433 = x_im;
double r2280434 = y_im;
double r2280435 = r2280433 * r2280434;
double r2280436 = r2280432 + r2280435;
double r2280437 = r2280431 * r2280431;
double r2280438 = r2280434 * r2280434;
double r2280439 = r2280437 + r2280438;
double r2280440 = r2280436 / r2280439;
return r2280440;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r2280441 = x_re;
double r2280442 = y_re;
double r2280443 = r2280441 * r2280442;
double r2280444 = /*Error: no posit support in C */;
double r2280445 = x_im;
double r2280446 = y_im;
double r2280447 = /*Error: no posit support in C */;
double r2280448 = /*Error: no posit support in C */;
double r2280449 = r2280442 * r2280442;
double r2280450 = /*Error: no posit support in C */;
double r2280451 = /*Error: no posit support in C */;
double r2280452 = /*Error: no posit support in C */;
double r2280453 = r2280448 / r2280452;
return r2280453;
}



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