\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r37659130 = x;
double r37659131 = y;
double r37659132 = 3.0;
double r37659133 = r37659131 * r37659132;
double r37659134 = r37659130 / r37659133;
return r37659134;
}
double f(double x, double y) {
double r37659135 = x;
double r37659136 = 3.0;
double r37659137 = r37659135 / r37659136;
double r37659138 = y;
double r37659139 = r37659137 / r37659138;
return r37659139;
}




Bits error versus x




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