\left(\left(x \cdot 3.0\right) \cdot x\right) \cdot y
x \cdot \left(\left(y \cdot 3.0\right) \cdot x\right)
double f(double x, double y) {
double r34411387 = x;
double r34411388 = 3.0;
double r34411389 = r34411387 * r34411388;
double r34411390 = r34411389 * r34411387;
double r34411391 = y;
double r34411392 = r34411390 * r34411391;
return r34411392;
}
double f(double x, double y) {
double r34411393 = x;
double r34411394 = y;
double r34411395 = 3.0;
double r34411396 = r34411394 * r34411395;
double r34411397 = r34411396 * r34411393;
double r34411398 = r34411393 * r34411397;
return r34411398;
}




Bits error versus x




Bits error versus y
Results
| Original | 10.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 10.4
rmApplied associate-*l*0.2
rmApplied associate-*l*0.2
rmApplied add-cube-cbrt0.2
Applied associate-*l*0.4
rmApplied pow10.4
Applied pow10.4
Applied pow-prod-down0.4
Applied pow10.4
Applied pow-prod-down0.4
Applied pow10.4
Applied pow10.4
Applied pow-prod-down0.4
Applied pow-prod-down0.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019164 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, A"
:herbie-target
(* (* x 3.0) (* x y))
(* (* (* x 3.0) x) y))