\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r763280 = x;
double r763281 = y;
double r763282 = 3.0;
double r763283 = r763281 * r763282;
double r763284 = r763280 / r763283;
return r763284;
}
double f(double x, double y) {
double r763285 = x;
double r763286 = 1.0;
double r763287 = y;
double r763288 = r763286 / r763287;
double r763289 = 3.0;
double r763290 = r763288 / r763289;
double r763291 = r763285 * r763290;
return r763291;
}




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
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))