\left(\left(x \cdot 3\right) \cdot x\right) \cdot y
\left(\left(y \cdot 3\right) \cdot x\right) \cdot x
double f(double x, double y) {
double r593356 = x;
double r593357 = 3.0;
double r593358 = r593356 * r593357;
double r593359 = r593358 * r593356;
double r593360 = y;
double r593361 = r593359 * r593360;
return r593361;
}
double f(double x, double y) {
double r593362 = y;
double r593363 = 3.0;
double r593364 = r593362 * r593363;
double r593365 = x;
double r593366 = r593364 * r593365;
double r593367 = r593366 * r593365;
return r593367;
}




Bits error versus x




Bits error versus y
Results
| Original | 9.9 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 9.9
rmApplied associate-*l*0.2
Simplified0.2
rmApplied associate-*r*0.2
Simplified0.2
rmApplied associate-*r*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019306
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(* (* x 3) (* x y))
(* (* (* x 3) x) y))