\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r514032 = x;
double r514033 = y;
double r514034 = 3.0;
double r514035 = r514033 * r514034;
double r514036 = r514032 / r514035;
return r514036;
}
double f(double x, double y) {
double r514037 = x;
double r514038 = 3.0;
double r514039 = y;
double r514040 = r514038 * r514039;
double r514041 = r514037 / r514040;
return r514041;
}




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 2019208 +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)))