\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
y \cdot \left(\left(x \cdot y\right) \cdot 3\right)
double f(double x, double y) {
double r570192 = x;
double r570193 = 3.0;
double r570194 = r570192 * r570193;
double r570195 = y;
double r570196 = r570194 * r570195;
double r570197 = r570196 * r570195;
return r570197;
}
double f(double x, double y) {
double r570198 = y;
double r570199 = x;
double r570200 = r570199 * r570198;
double r570201 = 3.0;
double r570202 = r570200 * r570201;
double r570203 = r570198 * r570202;
return r570203;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
Simplified0.2
rmApplied pow10.2
Applied pow10.2
Applied pow-prod-down0.2
Applied pow10.2
Applied pow10.2
Applied pow-prod-down0.2
Applied pow-prod-down0.2
Simplified0.2
rmApplied *-un-lft-identity0.2
Applied associate-*r*0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019196
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"
:herbie-target
(* (* x (* 3.0 y)) y)
(* (* (* x 3.0) y) y))