\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r521191 = x;
double r521192 = y;
double r521193 = 3.0;
double r521194 = r521192 * r521193;
double r521195 = r521191 / r521194;
return r521195;
}
double f(double x, double y) {
double r521196 = x;
double r521197 = 3.0;
double r521198 = r521196 / r521197;
double r521199 = y;
double r521200 = r521198 / r521199;
return r521200;
}




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 associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 1978988140
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))