\frac{x}{y \cdot 3}\frac{\frac{x}{y}}{3}double f(double x, double y) {
double r35849844 = x;
double r35849845 = y;
double r35849846 = 3.0;
double r35849847 = r35849845 * r35849846;
double r35849848 = r35849844 / r35849847;
return r35849848;
}
double f(double x, double y) {
double r35849849 = x;
double r35849850 = y;
double r35849851 = r35849849 / r35849850;
double r35849852 = 3.0;
double r35849853 = r35849851 / r35849852;
return r35849853;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied associate-/r*0.2
rmApplied *-un-lft-identity0.2
Applied div-inv0.3
Applied times-frac0.3
Simplified0.3
rmApplied associate-*r/0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019172
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:herbie-target
(/ (/ x y) 3.0)
(/ x (* y 3.0)))