\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r911191 = x;
double r911192 = y;
double r911193 = 3.0;
double r911194 = r911192 * r911193;
double r911195 = r911191 / r911194;
return r911195;
}
double f(double x, double y) {
double r911196 = x;
double r911197 = 3.0;
double r911198 = r911196 / r911197;
double r911199 = y;
double r911200 = r911198 / r911199;
return r911200;
}




Bits error versus x




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