\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r688061 = x;
double r688062 = y;
double r688063 = 3.0;
double r688064 = r688062 * r688063;
double r688065 = r688061 / r688064;
return r688065;
}
double f(double x, double y) {
double r688066 = x;
double r688067 = y;
double r688068 = 3.0;
double r688069 = r688067 * r688068;
double r688070 = r688066 / r688069;
return r688070;
}




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 2020047 +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)))