\frac{x}{y \cdot 3}\frac{\frac{x}{y}}{3}double f(double x, double y) {
double r837168 = x;
double r837169 = y;
double r837170 = 3.0;
double r837171 = r837169 * r837170;
double r837172 = r837168 / r837171;
return r837172;
}
double f(double x, double y) {
double r837173 = x;
double r837174 = y;
double r837175 = r837173 / r837174;
double r837176 = 3.0;
double r837177 = r837175 / r837176;
return r837177;
}




Bits error versus x




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