\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(x \cdot \left(y \cdot 3\right)\right) \cdot y
double f(double x, double y) {
double r559451 = x;
double r559452 = 3.0;
double r559453 = r559451 * r559452;
double r559454 = y;
double r559455 = r559453 * r559454;
double r559456 = r559455 * r559454;
return r559456;
}
double f(double x, double y) {
double r559457 = x;
double r559458 = y;
double r559459 = 3.0;
double r559460 = r559458 * r559459;
double r559461 = r559457 * r559460;
double r559462 = r559461 * r559458;
return r559462;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 0.3
rmApplied pow10.3
Applied pow10.3
Applied pow10.3
Applied pow-prod-down0.3
Applied pow-prod-down0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019212 +o rules:numerics
(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))