\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r469701 = x;
double r469702 = y;
double r469703 = 3.0;
double r469704 = r469702 * r469703;
double r469705 = r469701 / r469704;
return r469705;
}
double f(double x, double y) {
double r469706 = x;
double r469707 = 1.0;
double r469708 = y;
double r469709 = r469707 / r469708;
double r469710 = 3.0;
double r469711 = r469709 / r469710;
double r469712 = r469706 * r469711;
return r469712;
}




Bits error versus x




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