\frac{\left(\left(x.im \cdot y.re\right) - \left(x.re \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{qms}\left(\left(\left(x.im \cdot y.re\right)\right), x.re, 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 r821372 = x_im;
double r821373 = y_re;
double r821374 = r821372 * r821373;
double r821375 = x_re;
double r821376 = y_im;
double r821377 = r821375 * r821376;
double r821378 = r821374 - r821377;
double r821379 = r821373 * r821373;
double r821380 = r821376 * r821376;
double r821381 = r821379 + r821380;
double r821382 = r821378 / r821381;
return r821382;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r821383 = x_im;
double r821384 = y_re;
double r821385 = r821383 * r821384;
double r821386 = /*Error: no posit support in C */;
double r821387 = x_re;
double r821388 = y_im;
double r821389 = /*Error: no posit support in C */;
double r821390 = /*Error: no posit support in C */;
double r821391 = r821384 * r821384;
double r821392 = /*Error: no posit support in C */;
double r821393 = /*Error: no posit support in C */;
double r821394 = /*Error: no posit support in C */;
double r821395 = r821390 / r821394;
return r821395;
}



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-sub1.1
rmApplied introduce-quire1.1
Applied insert-quire-fdp-add1.0
Final simplification1.0
herbie shell --seed 2019152
(FPCore (x.re x.im y.re y.im)
:name "_divideComplex, imaginary part"
(/.p16 (-.p16 (*.p16 x.im y.re) (*.p16 x.re y.im)) (+.p16 (*.p16 y.re y.re) (*.p16 y.im y.im))))