\frac{x}{y \cdot 3.0}\frac{\frac{x}{y}}{3.0}double f(double x, double y) {
double r27493002 = x;
double r27493003 = y;
double r27493004 = 3.0;
double r27493005 = r27493003 * r27493004;
double r27493006 = r27493002 / r27493005;
return r27493006;
}
double f(double x, double y) {
double r27493007 = x;
double r27493008 = y;
double r27493009 = r27493007 / r27493008;
double r27493010 = 3.0;
double r27493011 = r27493009 / r27493010;
return r27493011;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied *-un-lft-identity0.3
Applied times-frac0.3
rmApplied associate-*r/0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019162 +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)))