\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(3 \cdot y\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
double r766997 = x;
double r766998 = 3.0;
double r766999 = r766997 * r766998;
double r767000 = y;
double r767001 = r766999 * r767000;
double r767002 = r767001 * r767000;
return r767002;
}
double f(double x, double y) {
double r767003 = 3.0;
double r767004 = y;
double r767005 = r767003 * r767004;
double r767006 = x;
double r767007 = r767006 * r767004;
double r767008 = r767005 * r767007;
return r767008;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.3 |
| Herbie | 0.3 |
Initial program 0.3
rmApplied pow10.3
Applied pow10.3
Applied pow10.3
Applied pow-prod-down0.3
Applied pow-prod-down0.3
Simplified0.3
rmApplied unpow-prod-down0.3
Applied associate-*l*0.3
Simplified0.3
rmApplied associate-*r*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2020046
(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))