\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r903629 = x;
double r903630 = y;
double r903631 = 3.0;
double r903632 = r903630 * r903631;
double r903633 = r903629 / r903632;
return r903633;
}
double f(double x, double y) {
double r903634 = x;
double r903635 = 1.0;
double r903636 = y;
double r903637 = r903635 / r903636;
double r903638 = 3.0;
double r903639 = r903637 / r903638;
double r903640 = r903634 * r903639;
return r903640;
}




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 *-un-lft-identity0.2
Applied div-inv0.3
Applied times-frac0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019354 +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)))