x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r78539 = x;
double r78540 = r78539 * r78539;
double r78541 = r78539 * r78540;
double r78542 = r78541 + r78540;
return r78542;
}
double f(double x) {
double r78543 = x;
double r78544 = 3.0;
double r78545 = pow(r78543, r78544);
double r78546 = fma(r78543, r78543, r78545);
return r78546;
}




Bits error versus x
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019325 +o rules:numerics
(FPCore (x)
:name "Expression 3, p15"
:precision binary64
:pre (<= 0.0 x 2)
:herbie-target
(* (* (+ 1 x) x) x)
(+ (* x (* x x)) (* x x)))