x.re \cdot y.re - x.im \cdot y.im
x.re \cdot y.re - x.im \cdot y.im
(FPCore (x.re x.im y.re y.im) :precision binary64 (- (* x.re y.re) (* x.im y.im)))
(FPCore (x.re x.im y.re y.im) :precision binary64 (- (* x.re y.re) (* x.im y.im)))
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (x_46_re * y_46_re) - (x_46_im * y_46_im);
}
double code(double x_46_re, double x_46_im, double y_46_re, double y_46_im) {
return (x_46_re * y_46_re) - (x_46_im * y_46_im);
}







Bits error versus x.re







Bits error versus x.im







Bits error versus y.re







Bits error versus y.im
Results
| Alternative 1 | |
|---|---|
| Error | 15.4 |
| Cost | 840 |
| Alternative 2 | |
|---|---|
| Error | 30.3 |
| Cost | 192 |
| Alternative 3 | |
|---|---|
| Error | 61.0 |
| Cost | 64 |
| Alternative 4 | |
|---|---|
| Error | 61.7 |
| Cost | 64 |

Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x.re x.im y.re y.im)
:name "_multiplyComplex, real part"
:precision binary64
(- (* x.re y.re) (* x.im y.im)))