\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 r791196 = x;
double r791197 = 3.0;
double r791198 = r791196 * r791197;
double r791199 = r791198 * r791196;
double r791200 = y;
double r791201 = r791199 * r791200;
return r791201;
}
double f(double x, double y) {
double r791202 = x;
double r791203 = 3.0;
double r791204 = y;
double r791205 = r791202 * r791204;
double r791206 = r791203 * r791205;
double r791207 = r791202 * r791206;
return r791207;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 10.3
rmApplied associate-*l*0.2
rmApplied associate-*l*0.2
Final simplification0.2
herbie shell --seed 2020039
(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))