\left(x \cdot y + z \cdot t\right) + a \cdot b
a \cdot b + \left(x \cdot y + z \cdot t\right)
(FPCore (x y z t a b) :precision binary64 (+ (+ (* x y) (* z t)) (* a b)))
(FPCore (x y z t a b) :precision binary64 (+ (* a b) (+ (* x y) (* z t))))
double code(double x, double y, double z, double t, double a, double b) {
return ((x * y) + (z * t)) + (a * b);
}
double code(double x, double y, double z, double t, double a, double b) {
return (a * b) + ((x * y) + (z * t));
}











Bits error versus x











Bits error versus y











Bits error versus z











Bits error versus t











Bits error versus a











Bits error versus b
Results
| Alternative 1 | |
|---|---|
| Error | 8.9 |
| Cost | 1032 |
| Alternative 2 | |
|---|---|
| Error | 9.8 |
| Cost | 1553 |
| Alternative 3 | |
|---|---|
| Error | 12.7 |
| Cost | 1032 |
| Alternative 4 | |
|---|---|
| Error | 30.1 |
| Cost | 3784 |
| Alternative 5 | |
|---|---|
| Error | 30.3 |
| Cost | 1297 |
| Alternative 6 | |
|---|---|
| Error | 41.9 |
| Cost | 192 |
| Alternative 7 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |
| Alternative 8 | |
|---|---|
| Error | 61.9 |
| Cost | 64 |

Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y z t a b)
:name "Linear.V3:$cdot from linear-1.19.1.3, B"
:precision binary64
(+ (+ (* x y) (* z t)) (* a b)))