x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r104130 = x;
double r104131 = r104130 * r104130;
double r104132 = r104130 * r104131;
double r104133 = r104132 + r104131;
return r104133;
}
double f(double x) {
double r104134 = x;
double r104135 = 3.0;
double r104136 = pow(r104134, r104135);
double r104137 = fma(r104134, r104134, r104136);
return r104137;
}




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 2020056 +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)))