\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r730510 = x;
double r730511 = y;
double r730512 = 3.0;
double r730513 = r730511 * r730512;
double r730514 = r730510 / r730513;
return r730514;
}
double f(double x, double y) {
double r730515 = x;
double r730516 = 3.0;
double r730517 = r730515 / r730516;
double r730518 = y;
double r730519 = r730517 / r730518;
return r730519;
}




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 pow10.3
Applied pow10.3
Applied pow-prod-down0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2020036 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))