x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r46582 = x;
double r46583 = r46582 * r46582;
double r46584 = r46582 * r46583;
double r46585 = r46584 + r46583;
return r46585;
}
double f(double x) {
double r46586 = x;
double r46587 = 3.0;
double r46588 = pow(r46586, r46587);
double r46589 = fma(r46586, r46586, r46588);
return r46589;
}




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 2019195 +o rules:numerics
(FPCore (x)
:name "Expression 3, p15"
:pre (<= 0.0 x 2.0)
:herbie-target
(* (* (+ 1.0 x) x) x)
(+ (* x (* x x)) (* x x)))