\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r555962 = x;
double r555963 = y;
double r555964 = 3.0;
double r555965 = r555963 * r555964;
double r555966 = r555962 / r555965;
return r555966;
}
double f(double x, double y) {
double r555967 = x;
double r555968 = 3.0;
double r555969 = y;
double r555970 = r555968 * r555969;
double r555971 = r555967 / r555970;
return r555971;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.2 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
Initial program 0.2
rmApplied associate-/r*0.3
rmApplied div-inv0.3
Applied associate-/l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019212 +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)))