\frac{x}{y \cdot 3}x \cdot \frac{\frac{1}{y}}{3}double f(double x, double y) {
double r597858 = x;
double r597859 = y;
double r597860 = 3.0;
double r597861 = r597859 * r597860;
double r597862 = r597858 / r597861;
return r597862;
}
double f(double x, double y) {
double r597863 = x;
double r597864 = 1.0;
double r597865 = y;
double r597866 = r597864 / r597865;
double r597867 = 3.0;
double r597868 = r597866 / r597867;
double r597869 = r597863 * r597868;
return r597869;
}




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
(FPCore (x y)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (/ x y) 3)
(/ x (* y 3)))