\frac{x}{y \cdot 3.0}\frac{x}{3.0 \cdot y}double f(double x, double y) {
double r31828878 = x;
double r31828879 = y;
double r31828880 = 3.0;
double r31828881 = r31828879 * r31828880;
double r31828882 = r31828878 / r31828881;
return r31828882;
}
double f(double x, double y) {
double r31828883 = x;
double r31828884 = 3.0;
double r31828885 = y;
double r31828886 = r31828884 * r31828885;
double r31828887 = r31828883 / r31828886;
return r31828887;
}




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.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019163
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:herbie-target
(/ (/ x y) 3.0)
(/ x (* y 3.0)))