\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r624802 = x;
double r624803 = y;
double r624804 = 3.0;
double r624805 = r624803 * r624804;
double r624806 = r624802 / r624805;
return r624806;
}
double f(double x, double y) {
double r624807 = x;
double r624808 = 3.0;
double r624809 = y;
double r624810 = r624808 * r624809;
double r624811 = r624807 / r624810;
return r624811;
}




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 2019208
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))