\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r598550 = x;
double r598551 = y;
double r598552 = 3.0;
double r598553 = r598551 * r598552;
double r598554 = r598550 / r598553;
return r598554;
}
double f(double x, double y) {
double r598555 = x;
double r598556 = 3.0;
double r598557 = r598555 / r598556;
double r598558 = y;
double r598559 = r598557 / r598558;
return r598559;
}




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