\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r10910 = x;
double r10911 = 1.0;
double r10912 = r10910 + r10911;
double r10913 = r10912 * r10912;
double r10914 = r10913 - r10911;
return r10914;
}
double f(double x) {
double r10915 = x;
double r10916 = 2.0;
double r10917 = r10915 * r10916;
double r10918 = 2.0;
double r10919 = pow(r10915, r10918);
double r10920 = r10917 + r10919;
return r10920;
}



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 2019318
(FPCore (x)
:name "Expanding a square"
:precision binary64
(- (* (+ x 1) (+ x 1)) 1))