\left(\frac{1}{8} \cdot x - \frac{y \cdot z}{2}\right) + tt + \left(0.125 \cdot x - \frac{y \cdot z}{2}\right)(FPCore (x y z t) :precision binary64 (+ (- (* (/ 1.0 8.0) x) (/ (* y z) 2.0)) t))
(FPCore (x y z t) :precision binary64 (+ t (- (* 0.125 x) (/ (* y z) 2.0))))
double code(double x, double y, double z, double t) {
return (((1.0 / 8.0) * x) - ((y * z) / 2.0)) + t;
}
double code(double x, double y, double z, double t) {
return t + ((0.125 * x) - ((y * z) / 2.0));
}











Bits error versus x











Bits error versus y











Bits error versus z











Bits error versus t
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
| Alternative 1 | |
|---|---|
| Error | 8.7 |
| Cost | 1041 |
| Alternative 2 | |
|---|---|
| Error | 19.7 |
| Cost | 1604 |
| Alternative 3 | |
|---|---|
| Error | 29.7 |
| Cost | 2439 |
| Alternative 4 | |
|---|---|
| Error | 28.3 |
| Cost | 973 |
| Alternative 5 | |
|---|---|
| Error | 40.1 |
| Cost | 64 |
| Alternative 6 | |
|---|---|
| Error | 62.0 |
| Cost | 64 |
| Alternative 7 | |
|---|---|
| Error | 62.0 |
| Cost | 64 |

Initial program 0.0
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2021044
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, B"
:precision binary64
:herbie-target
(- (+ (/ x 8.0) t) (* (/ z 2.0) y))
(+ (- (* (/ 1.0 8.0) x) (/ (* y z) 2.0)) t))