\frac{x}{y \cdot 3}\frac{\frac{x}{y}}{3}double f(double x, double y) {
double r33918877 = x;
double r33918878 = y;
double r33918879 = 3.0;
double r33918880 = r33918878 * r33918879;
double r33918881 = r33918877 / r33918880;
return r33918881;
}
double f(double x, double y) {
double r33918882 = x;
double r33918883 = y;
double r33918884 = r33918882 / r33918883;
double r33918885 = 3.0;
double r33918886 = r33918884 / r33918885;
return r33918886;
}




Bits error versus x




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