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









Bits error versus x









Bits error versus y









Bits error versus z
Results
| Alternative 1 | |
|---|---|
| Error | 0.0 |
| Cost | 448 |
| Alternative 2 | |
|---|---|
| Error | 0.9 |
| Cost | 648 |
| Alternative 3 | |
|---|---|
| Error | 6.7 |
| Cost | 648 |
| Alternative 4 | |
|---|---|
| Error | 15.7 |
| Cost | 648 |
| Alternative 5 | |
|---|---|
| Error | 23.3 |
| Cost | 520 |
| Alternative 6 | |
|---|---|
| Error | 35.1 |
| Cost | 64 |


Initial program 0.0
rmApplied distribute-lft-in_binary64_44600.0
Applied associate-+r+_binary64_44430.0
rmApplied pow1_binary64_45720.0
rmApplied pow1_binary64_45720.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021065
(FPCore (x y z)
:name "Main:bigenough2 from A"
:precision binary64
(+ x (* y (+ z x))))