\frac{x}{y \cdot 3.0}\frac{\frac{x}{3.0}}{y}double f(double x, double y) {
double r32492289 = x;
double r32492290 = y;
double r32492291 = 3.0;
double r32492292 = r32492290 * r32492291;
double r32492293 = r32492289 / r32492292;
return r32492293;
}
double f(double x, double y) {
double r32492294 = x;
double r32492295 = 3.0;
double r32492296 = r32492294 / r32492295;
double r32492297 = y;
double r32492298 = r32492296 / r32492297;
return r32492298;
}




Bits error versus x




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