\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r4835 = x;
double r4836 = 1.0;
double r4837 = r4835 + r4836;
double r4838 = r4837 * r4837;
double r4839 = r4838 - r4836;
return r4839;
}
double f(double x) {
double r4840 = x;
double r4841 = 2.0;
double r4842 = r4840 * r4841;
double r4843 = 2.0;
double r4844 = pow(r4840, r4843);
double r4845 = r4842 + r4844;
return r4845;
}



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