\frac{x}{y \cdot 3}\frac{x}{y \cdot 3}double f(double x, double y) {
double r38076 = x;
double r38077 = y;
double r38078 = 3.0;
double r38079 = r38077 * r38078;
double r38080 = r38076 / r38079;
return r38080;
}
double f(double x, double y) {
double r38081 = x;
double r38082 = y;
double r38083 = 3.0;
double r38084 = r38082 * r38083;
double r38085 = r38081 / r38084;
return r38085;
}




Bits error versus x




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