\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r651461 = x;
double r651462 = y;
double r651463 = 3.0;
double r651464 = r651462 * r651463;
double r651465 = r651461 / r651464;
return r651465;
}
double f(double x, double y) {
double r651466 = x;
double r651467 = y;
double r651468 = 3.0;
double r651469 = r651467 * r651468;
double r651470 = r651466 / r651469;
return r651470;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied associate-/r*0.2
rmApplied div-inv0.3
Applied associate-/l*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020047 +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)))