\left(\left(x \cdot 3\right) \cdot x\right) \cdot y
x \cdot \left(\left(x \cdot 3\right) \cdot y\right)
double f(double x, double y) {
double r500571 = x;
double r500572 = 3.0;
double r500573 = r500571 * r500572;
double r500574 = r500573 * r500571;
double r500575 = y;
double r500576 = r500574 * r500575;
return r500576;
}
double f(double x, double y) {
double r500577 = x;
double r500578 = 3.0;
double r500579 = r500577 * r500578;
double r500580 = y;
double r500581 = r500579 * r500580;
double r500582 = r500577 * r500581;
return r500582;
}




Bits error versus x




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