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




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.2 |
| Herbie | 0.4 |
Initial program 0.2
Taylor expanded around 0 0.4
Final simplification0.4
herbie shell --seed 2020124
(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)))