\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r2695 = x;
double r2696 = 1.0;
double r2697 = r2695 + r2696;
double r2698 = r2697 * r2697;
double r2699 = r2698 - r2696;
return r2699;
}
double f(double x) {
double r2700 = x;
double r2701 = 2.0;
double r2702 = r2700 * r2701;
double r2703 = 2.0;
double r2704 = pow(r2700, r2703);
double r2705 = r2702 + r2704;
return r2705;
}



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