\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r478780 = x;
double r478781 = y;
double r478782 = 3.0;
double r478783 = r478781 * r478782;
double r478784 = r478780 / r478783;
return r478784;
}
double f(double x, double y) {
double r478785 = x;
double r478786 = 3.0;
double r478787 = y;
double r478788 = r478786 * r478787;
double r478789 = r478785 / r478788;
return r478789;
}




Bits error versus x




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