\left(\left(x \cdot 3\right) \cdot x\right) \cdot y
x \cdot \left(\left(3 \cdot x\right) \cdot y\right)
double f(double x, double y) {
double r824418 = x;
double r824419 = 3.0;
double r824420 = r824418 * r824419;
double r824421 = r824420 * r824418;
double r824422 = y;
double r824423 = r824421 * r824422;
return r824423;
}
double f(double x, double y) {
double r824424 = x;
double r824425 = 3.0;
double r824426 = r824425 * r824424;
double r824427 = y;
double r824428 = r824426 * r824427;
double r824429 = r824424 * r824428;
return r824429;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.3
rmApplied associate-*l*0.2
rmApplied associate-*l*0.2
rmApplied associate-*r*0.2
Final simplification0.2
herbie shell --seed 2019353 +o rules:numerics
(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))