x - \frac{3}{8} \cdot yx - 0.375 \cdot y
(FPCore (x y) :precision binary64 (- x (* (/ 3.0 8.0) y)))
(FPCore (x y) :precision binary64 (- x (* 0.375 y)))
double code(double x, double y) {
return x - ((3.0 / 8.0) * y);
}
double code(double x, double y) {
return x - (0.375 * y);
}



Bits error versus x



Bits error versus y
Results
Initial program 0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020232
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, A"
:precision binary64
(- x (* (/ 3.0 8.0) y)))