\left(\left(x \cdot 3\right) \cdot x\right) \cdot y
x \cdot \left(3 \cdot \left(x \cdot y\right)\right)
double f(double x, double y) {
double r802909 = x;
double r802910 = 3.0;
double r802911 = r802909 * r802910;
double r802912 = r802911 * r802909;
double r802913 = y;
double r802914 = r802912 * r802913;
return r802914;
}
double f(double x, double y) {
double r802915 = x;
double r802916 = 3.0;
double r802917 = y;
double r802918 = r802915 * r802917;
double r802919 = r802916 * r802918;
double r802920 = r802915 * r802919;
return r802920;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.4
rmApplied associate-*l*0.2
rmApplied associate-*l*0.2
rmApplied *-un-lft-identity0.2
Final simplification0.2
herbie shell --seed 2020001
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(* (* x 3) (* x y))
(* (* (* x 3) x) y))