\left(x + 1\right) \cdot \left(x + 1\right) - 1
\mathsf{fma}\left({x}^{\left(\frac{2}{2}\right)}, {x}^{\left(\frac{2}{2}\right)}, 2 \cdot x\right)double f(double x) {
double r3193 = x;
double r3194 = 1.0;
double r3195 = r3193 + r3194;
double r3196 = r3195 * r3195;
double r3197 = r3196 - r3194;
return r3197;
}
double f(double x) {
double r3198 = x;
double r3199 = 2.0;
double r3200 = r3199 / r3199;
double r3201 = pow(r3198, r3200);
double r3202 = 2.0;
double r3203 = r3202 * r3198;
double r3204 = fma(r3201, r3201, r3203);
return r3204;
}



Bits error versus x
Initial program 38.4
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
rmApplied sqr-pow0.0
Applied fma-def0
Final simplification0
herbie shell --seed 2020043 +o rules:numerics
(FPCore (x)
:name "Expanding a square"
:precision binary64
(- (* (+ x 1) (+ x 1)) 1))