\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r431238 = x;
double r431239 = y;
double r431240 = 3.0;
double r431241 = r431239 * r431240;
double r431242 = r431238 / r431241;
return r431242;
}
double f(double x, double y) {
double r431243 = x;
double r431244 = 3.0;
double r431245 = r431243 / r431244;
double r431246 = y;
double r431247 = r431245 / r431246;
return r431247;
}




Bits error versus x




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