\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(3 \cdot y\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
double r668908 = x;
double r668909 = 3.0;
double r668910 = r668908 * r668909;
double r668911 = y;
double r668912 = r668910 * r668911;
double r668913 = r668912 * r668911;
return r668913;
}
double f(double x, double y) {
double r668914 = 3.0;
double r668915 = y;
double r668916 = r668914 * r668915;
double r668917 = x;
double r668918 = r668917 * r668915;
double r668919 = r668916 * r668918;
return r668919;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied pow10.3
Applied pow10.3
Applied pow10.3
Applied pow-prod-down0.3
Applied pow-prod-down0.3
Simplified0.3
rmApplied unpow-prod-down0.3
Applied associate-*l*0.3
Simplified0.3
rmApplied associate-*r*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020046
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(* (* x (* 3 y)) y)
(* (* (* x 3) y) y))