x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {x}^{3}\right)double f(double x) {
double r136936 = x;
double r136937 = r136936 * r136936;
double r136938 = r136936 * r136937;
double r136939 = r136938 + r136937;
return r136939;
}
double f(double x) {
double r136940 = x;
double r136941 = 3.0;
double r136942 = pow(r136940, r136941);
double r136943 = fma(r136940, r136940, r136942);
return r136943;
}




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