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 r2107679 = x;
double r2107680 = r2107679 * r2107679;
double r2107681 = r2107679 * r2107680;
double r2107682 = r2107681 + r2107680;
return r2107682;
}
double f(double x) {
double r2107683 = x;
double r2107684 = 1.0;
double r2107685 = r2107684 / r2107683;
double r2107686 = -3.0;
double r2107687 = pow(r2107685, r2107686);
double r2107688 = fma(r2107683, r2107683, r2107687);
return r2107688;
}




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