\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r467243 = x;
double r467244 = y;
double r467245 = 3.0;
double r467246 = r467244 * r467245;
double r467247 = r467243 / r467246;
return r467247;
}
double f(double x, double y) {
double r467248 = x;
double r467249 = 3.0;
double r467250 = r467248 / r467249;
double r467251 = y;
double r467252 = r467250 / r467251;
return r467252;
}




Bits error versus x




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