\frac{x}{y \cdot 3}\frac{\frac{x}{3}}{y}double f(double x, double y) {
double r477985 = x;
double r477986 = y;
double r477987 = 3.0;
double r477988 = r477986 * r477987;
double r477989 = r477985 / r477988;
return r477989;
}
double f(double x, double y) {
double r477990 = x;
double r477991 = 3.0;
double r477992 = r477990 / r477991;
double r477993 = y;
double r477994 = r477992 / r477993;
return r477994;
}




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 add-sqr-sqrt0.3
Applied times-frac0.3
Applied associate-*l*0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019325 +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)))