\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r54014 = x;
double r54015 = y;
double r54016 = 3.0;
double r54017 = r54015 * r54016;
double r54018 = r54014 / r54017;
return r54018;
}
double f(double x, double y) {
double r54019 = x;
double r54020 = 3.0;
double r54021 = r54019 / r54020;
double r54022 = y;
double r54023 = r54021 / r54022;
return r54023;
}




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