\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r855606 = x;
double r855607 = y;
double r855608 = 3.0;
double r855609 = r855607 * r855608;
double r855610 = r855606 / r855609;
return r855610;
}
double f(double x, double y) {
double r855611 = x;
double r855612 = y;
double r855613 = 3.0;
double r855614 = r855612 * r855613;
double r855615 = r855611 / r855614;
return r855615;
}




Bits error versus x




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