\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 r493670 = x;
double r493671 = 3.0;
double r493672 = r493670 * r493671;
double r493673 = y;
double r493674 = r493672 * r493673;
double r493675 = r493674 * r493673;
return r493675;
}
double f(double x, double y) {
double r493676 = 3.0;
double r493677 = y;
double r493678 = r493676 * r493677;
double r493679 = x;
double r493680 = r493677 * r493679;
double r493681 = r493678 * r493680;
return r493681;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied associate-*l*0.2
Simplified0.2
rmApplied pow10.2
Applied pow10.2
Applied pow-prod-down0.2
Applied pow10.2
Applied pow-prod-down0.2
Simplified0.3
rmApplied unpow-prod-down0.3
Applied associate-*l*0.2
Simplified0.2
Final simplification0.2
herbie shell --seed 2019322
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(* (* x (* 3 y)) y)
(* (* (* x 3) y) y))