\frac{x}{y \cdot 3.0}\frac{x}{3.0 \cdot y}double f(double x, double y) {
double r34938124 = x;
double r34938125 = y;
double r34938126 = 3.0;
double r34938127 = r34938125 * r34938126;
double r34938128 = r34938124 / r34938127;
return r34938128;
}
double f(double x, double y) {
double r34938129 = x;
double r34938130 = 3.0;
double r34938131 = y;
double r34938132 = r34938130 * r34938131;
double r34938133 = r34938129 / r34938132;
return r34938133;
}




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.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019163
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:herbie-target
(/ (/ x y) 3.0)
(/ x (* y 3.0)))