\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r471558 = x;
double r471559 = y;
double r471560 = 3.0;
double r471561 = r471559 * r471560;
double r471562 = r471558 / r471561;
return r471562;
}
double f(double x, double y) {
double r471563 = x;
double r471564 = 1.0;
double r471565 = y;
double r471566 = r471564 / r471565;
double r471567 = 3.0;
double r471568 = r471566 / r471567;
double r471569 = r471563 * r471568;
return r471569;
}




Bits error versus x




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