\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(3 \cdot y\right) \cdot \left(y \cdot x\right)
double f(double x, double y) {
double r37457092 = x;
double r37457093 = 3.0;
double r37457094 = r37457092 * r37457093;
double r37457095 = y;
double r37457096 = r37457094 * r37457095;
double r37457097 = r37457096 * r37457095;
return r37457097;
}
double f(double x, double y) {
double r37457098 = 3.0;
double r37457099 = y;
double r37457100 = r37457098 * r37457099;
double r37457101 = x;
double r37457102 = r37457099 * r37457101;
double r37457103 = r37457100 * r37457102;
return r37457103;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
Taylor expanded around 0 0.2
rmApplied *-un-lft-identity0.2
Applied associate-*r*0.2
Simplified0.2
rmApplied associate-*l*0.2
Final simplification0.2
herbie shell --seed 2019172
(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))