\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r743800 = x;
double r743801 = y;
double r743802 = 3.0;
double r743803 = r743801 * r743802;
double r743804 = r743800 / r743803;
return r743804;
}
double f(double x, double y) {
double r743805 = x;
double r743806 = 3.0;
double r743807 = r743805 / r743806;
double r743808 = y;
double r743809 = r743807 / r743808;
return r743809;
}




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 *-un-lft-identity0.3
Applied *-un-lft-identity0.3
Applied times-frac0.3
Applied associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020036
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))