\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r744105 = x;
double r744106 = y;
double r744107 = 3.0;
double r744108 = r744106 * r744107;
double r744109 = r744105 / r744108;
return r744109;
}
double f(double x, double y) {
double r744110 = x;
double r744111 = y;
double r744112 = 3.0;
double r744113 = r744111 * r744112;
double r744114 = r744110 / r744113;
return r744114;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied associate-/r*0.3
rmApplied div-inv0.3
Applied associate-/l*0.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2020018
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))