\frac{x}{y \cdot 3}\frac{1}{y} \cdot \frac{x}{3}(FPCore (x y) :precision binary64 (/ x (* y 3.0)))
(FPCore (x y) :precision binary64 (* (/ 1.0 y) (/ x 3.0)))
double code(double x, double y) {
return (x / ((double) (y * 3.0)));
}
double code(double x, double y) {
return ((double) ((1.0 / y) * (x / 3.0)));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program Error: 0.3 bits
rmApplied *-un-lft-identityError: 0.3 bits
Applied times-fracError: 0.3 bits
Final simplificationError: 0.3 bits
herbie shell --seed 2020203
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3.0)
(/ x (* y 3.0)))