\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(y \cdot 3\right) \cdot \left(x \cdot y\right)
double f(double x, double y) {
double r559462 = x;
double r559463 = 3.0;
double r559464 = r559462 * r559463;
double r559465 = y;
double r559466 = r559464 * r559465;
double r559467 = r559466 * r559465;
return r559467;
}
double f(double x, double y) {
double r559468 = y;
double r559469 = 3.0;
double r559470 = r559468 * r559469;
double r559471 = x;
double r559472 = r559471 * r559468;
double r559473 = r559470 * r559472;
return r559473;
}




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
Taylor expanded around 0 10.1
Simplified0.2
rmApplied associate-*r*0.2
Final simplification0.2
herbie shell --seed 2019198
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"
:herbie-target
(* (* x (* 3.0 y)) y)
(* (* (* x 3.0) y) y))