\left(x \cdot y + z \cdot t\right) + a \cdot b
a \cdot b + \left(z \cdot t + x \cdot y\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) (+ (* z t) (* x y))))
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) + ((z * t) + (x * y));
}










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 | 10.7 |
| Cost | 1346 |
| Alternative 2 | |
|---|---|
| Error | 8.7 |
| Cost | 1032 |
| Alternative 3 | |
|---|---|
| Error | 12.0 |
| Cost | 1032 |
| Alternative 4 | |
|---|---|
| Error | 30.6 |
| Cost | 3784 |
| Alternative 5 | |
|---|---|
| Error | 30.6 |
| Cost | 1297 |
| Alternative 6 | |
|---|---|
| Error | 41.0 |
| Cost | 192 |
| Alternative 7 | |
|---|---|
| Error | 61.8 |
| Cost | 64 |


Initial program 0.0
rmApplied flip-+_binary64_243930.1
Taylor expanded around 0 55.4
Simplified40.7
Taylor expanded around inf 0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021040
(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)))