\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r1351174 = x;
double r1351175 = y;
double r1351176 = 3.0;
double r1351177 = r1351175 * r1351176;
double r1351178 = r1351174 / r1351177;
return r1351178;
}
double f(double x, double y) {
double r1351179 = x;
double r1351180 = y;
double r1351181 = 3.0;
double r1351182 = r1351180 * r1351181;
double r1351183 = r1351179 / r1351182;
return r1351183;
}




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)))