\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r866400 = x;
double r866401 = y;
double r866402 = 3.0;
double r866403 = r866401 * r866402;
double r866404 = r866400 / r866403;
return r866404;
}
double f(double x, double y) {
double r866405 = x;
double r866406 = y;
double r866407 = 3.0;
double r866408 = r866406 * r866407;
double r866409 = r866405 / r866408;
return r866409;
}




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