x \cdot \left(x \cdot x\right) + x \cdot x
\mathsf{fma}\left(x, x, {\left(\frac{1}{x}\right)}^{-3}\right)double f(double x) {
double r3214165 = x;
double r3214166 = r3214165 * r3214165;
double r3214167 = r3214165 * r3214166;
double r3214168 = r3214167 + r3214166;
return r3214168;
}
double f(double x) {
double r3214169 = x;
double r3214170 = 1.0;
double r3214171 = r3214170 / r3214169;
double r3214172 = -3.0;
double r3214173 = pow(r3214171, r3214172);
double r3214174 = fma(r3214169, r3214169, r3214173);
return r3214174;
}




Bits error versus x
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied add-cbrt-cube20.2
rmApplied fma-udef20.2
Applied distribute-lft-in20.2
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019152 +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)))