\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r7851 = x;
double r7852 = 1.0;
double r7853 = r7851 + r7852;
double r7854 = r7853 * r7853;
double r7855 = r7854 - r7852;
return r7855;
}
double f(double x) {
double r7856 = x;
double r7857 = 2.0;
double r7858 = r7856 * r7857;
double r7859 = 2.0;
double r7860 = pow(r7856, r7859);
double r7861 = r7858 + r7860;
return r7861;
}



Bits error versus x
Results
Initial program 38.9
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020056
(FPCore (x)
:name "Expanding a square"
:precision binary64
(- (* (+ x 1) (+ x 1)) 1))