\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 r896647 = x_re;
double r896648 = y_re;
double r896649 = r896647 * r896648;
double r896650 = x_im;
double r896651 = y_im;
double r896652 = r896650 * r896651;
double r896653 = r896649 + r896652;
double r896654 = r896648 * r896648;
double r896655 = r896651 * r896651;
double r896656 = r896654 + r896655;
double r896657 = r896653 / r896656;
return r896657;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r896658 = x_re;
double r896659 = y_re;
double r896660 = r896658 * r896659;
double r896661 = /*Error: no posit support in C */;
double r896662 = x_im;
double r896663 = y_im;
double r896664 = /*Error: no posit support in C */;
double r896665 = /*Error: no posit support in C */;
double r896666 = r896659 * r896659;
double r896667 = /*Error: no posit support in C */;
double r896668 = /*Error: no posit support in C */;
double r896669 = /*Error: no posit support in C */;
double r896670 = r896665 / r896669;
return r896670;
}



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