\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r582115 = x;
double r582116 = y;
double r582117 = 3.0;
double r582118 = r582116 * r582117;
double r582119 = r582115 / r582118;
return r582119;
}
double f(double x, double y) {
double r582120 = x;
double r582121 = 3.0;
double r582122 = r582120 / r582121;
double r582123 = y;
double r582124 = r582122 / r582123;
return r582124;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied associate-/r*0.3
rmApplied *-un-lft-identity0.3
Applied *-un-lft-identity0.3
Applied *-un-lft-identity0.3
Applied times-frac0.3
Applied times-frac0.3
Simplified0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019194
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:herbie-target
(/ (/ x y) 3.0)
(/ x (* y 3.0)))