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




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied frac-2neg_binary64_205490.3
Simplified0.3
rmApplied pow1_binary64_205990.3
rmApplied distribute-frac-neg_binary64_205010.3
Final simplification0.3
herbie shell --seed 2020322
(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)))