\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(x \cdot y\right) \cdot \left(y \cdot 3\right)
double f(double x, double y) {
double r33564846 = x;
double r33564847 = 3.0;
double r33564848 = r33564846 * r33564847;
double r33564849 = y;
double r33564850 = r33564848 * r33564849;
double r33564851 = r33564850 * r33564849;
return r33564851;
}
double f(double x, double y) {
double r33564852 = x;
double r33564853 = y;
double r33564854 = r33564852 * r33564853;
double r33564855 = 3.0;
double r33564856 = r33564853 * r33564855;
double r33564857 = r33564854 * r33564856;
return r33564857;
}




Bits error versus x




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