\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r2677 = x;
double r2678 = 1.0;
double r2679 = r2677 + r2678;
double r2680 = r2679 * r2679;
double r2681 = r2680 - r2678;
return r2681;
}
double f(double x) {
double r2682 = x;
double r2683 = 2.0;
double r2684 = r2682 * r2683;
double r2685 = 2.0;
double r2686 = pow(r2682, r2685);
double r2687 = r2684 + r2686;
return r2687;
}



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