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




















Bits error versus x




















Bits error versus y




















Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 32.4 |
| Cost | 46272 |
| Alternative 2 | |
|---|---|
| Error | 44.6 |
| Cost | 20416 |
| Alternative 3 | |
|---|---|
| Error | 44.8 |
| Cost | 20288 |
| Alternative 4 | |
|---|---|
| Error | 31.1 |
| Cost | 13632 |
| Alternative 5 | |
|---|---|
| Error | 32.2 |
| Cost | 13504 |
| Alternative 6 | |
|---|---|
| Error | 45.6 |
| Cost | 13376 |
| Alternative 7 | |
|---|---|
| Error | 26.6 |
| Cost | 13312 |
| Alternative 8 | |
|---|---|
| Error | 26.6 |
| Cost | 7616 |
| Alternative 9 | |
|---|---|
| Error | 0.0 |
| Cost | 448 |
| Alternative 10 | |
|---|---|
| Error | 29.0 |
| Cost | 320 |
| Alternative 11 | |
|---|---|
| Error | 11.5 |
| Cost | 320 |
| Alternative 12 | |
|---|---|
| Error | 23.2 |
| Cost | 320 |
| Alternative 13 | |
|---|---|
| Error | 40.0 |
| Cost | 192 |
| Alternative 14 | |
|---|---|
| Error | 34.1 |
| Cost | 64 |
| Alternative 15 | |
|---|---|
| Error | 61.8 |
| Cost | 64 |
| Alternative 16 | |
|---|---|
| Error | 62.2 |
| Cost | 64 |
| Alternative 17 | |
|---|---|
| Error | 61.8 |
| Cost | 64 |

Initial program 0.0
rmApplied distribute-rgt-in_binary64_36840.0
Simplified0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021042
(FPCore (x y z)
:name "Main:bigenough2 from A"
:precision binary64
(+ x (* y (+ z x))))