\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r783228 = x;
double r783229 = y;
double r783230 = 3.0;
double r783231 = r783229 * r783230;
double r783232 = r783228 / r783231;
return r783232;
}
double f(double x, double y) {
double r783233 = x;
double r783234 = y;
double r783235 = 3.0;
double r783236 = r783234 * r783235;
double r783237 = r783233 / r783236;
return r783237;
}




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
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))