\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(y \cdot 3\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
double r584084 = x;
double r584085 = 3.0;
double r584086 = r584084 * r584085;
double r584087 = y;
double r584088 = r584086 * r584087;
double r584089 = r584088 * r584087;
return r584089;
}
double f(double x, double y) {
double r584090 = y;
double r584091 = 3.0;
double r584092 = r584090 * r584091;
double r584093 = x;
double r584094 = r584093 * r584090;
double r584095 = r584092 * r584094;
return r584095;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied associate-*l*0.2
Simplified0.2
rmApplied pow10.2
Applied pow10.2
Applied pow10.2
Applied pow-prod-down0.2
Applied pow10.2
Applied pow-prod-down0.2
Applied pow-prod-down0.2
Simplified0.2
rmApplied associate-*r*0.2
Final simplification0.2
herbie shell --seed 2019235
(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))