\frac{x}{y \cdot 3}\frac{x}{3 \cdot y}double f(double x, double y) {
double r771073 = x;
double r771074 = y;
double r771075 = 3.0;
double r771076 = r771074 * r771075;
double r771077 = r771073 / r771076;
return r771077;
}
double f(double x, double y) {
double r771078 = x;
double r771079 = 3.0;
double r771080 = y;
double r771081 = r771079 * r771080;
double r771082 = r771078 / r771081;
return r771082;
}




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