\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r686079 = x;
double r686080 = y;
double r686081 = 3.0;
double r686082 = r686080 * r686081;
double r686083 = r686079 / r686082;
return r686083;
}
double f(double x, double y) {
double r686084 = x;
double r686085 = 3.0;
double r686086 = r686084 / r686085;
double r686087 = y;
double r686088 = r686086 / r686087;
return r686088;
}




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 div-inv0.3
rmApplied associate-*l/0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020039 +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)))