x \cdot \left(x \cdot x\right) + x \cdot x
x \cdot \mathsf{fma}\left(x, x, x\right)double f(double x) {
double r2545545 = x;
double r2545546 = r2545545 * r2545545;
double r2545547 = r2545545 * r2545546;
double r2545548 = r2545547 + r2545546;
return r2545548;
}
double f(double x) {
double r2545549 = x;
double r2545550 = fma(r2545549, r2545549, r2545549);
double r2545551 = r2545549 * r2545550;
return r2545551;
}




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