x.re \cdot y.im + x.im \cdot y.re
\mathsf{fma}\left(y.re, x.im, y.im \cdot x.re\right)double f(double x_re, double x_im, double y_re, double y_im) {
double r10003 = x_re;
double r10004 = y_im;
double r10005 = r10003 * r10004;
double r10006 = x_im;
double r10007 = y_re;
double r10008 = r10006 * r10007;
double r10009 = r10005 + r10008;
return r10009;
}
double f(double x_re, double x_im, double y_re, double y_im) {
double r10010 = y_re;
double r10011 = x_im;
double r10012 = y_im;
double r10013 = x_re;
double r10014 = r10012 * r10013;
double r10015 = fma(r10010, r10011, r10014);
return r10015;
}



Bits error versus x.re



Bits error versus x.im



Bits error versus y.re



Bits error versus y.im
Initial program 0.0
Simplified0.0
rmApplied fma-udef0.0
Simplified0.0
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019310 +o rules:numerics
(FPCore (x.re x.im y.re y.im)
:name "_multiplyComplex, imaginary part"
:precision binary64
(+ (* x.re y.im) (* x.im y.re)))