\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r802680 = x;
double r802681 = y;
double r802682 = 3.0;
double r802683 = r802681 * r802682;
double r802684 = r802680 / r802683;
return r802684;
}
double f(double x, double y) {
double r802685 = x;
double r802686 = 3.0;
double r802687 = r802685 / r802686;
double r802688 = y;
double r802689 = r802687 / r802688;
return r802689;
}




Bits error versus x




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