\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r599785 = x;
double r599786 = y;
double r599787 = 3.0;
double r599788 = r599786 * r599787;
double r599789 = r599785 / r599788;
return r599789;
}
double f(double x, double y) {
double r599790 = x;
double r599791 = 3.0;
double r599792 = y;
double r599793 = r599791 * r599792;
double r599794 = r599790 / r599793;
return r599794;
}




Bits error versus x




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