\frac{x}{y \cdot 3}\frac{0.333333333333333315 \cdot x}{y}double code(double x, double y) {
return (x / (y * 3.0));
}
double code(double x, double y) {
return ((0.3333333333333333 * x) / y);
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
Taylor expanded around 0 0.4
rmApplied associate-*r/0.3
Final simplification0.3
herbie shell --seed 2020105 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))