\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r2684 = x;
double r2685 = 1.0;
double r2686 = r2684 + r2685;
double r2687 = r2686 * r2686;
double r2688 = r2687 - r2685;
return r2688;
}
double f(double x) {
double r2689 = x;
double r2690 = 2.0;
double r2691 = r2689 * r2690;
double r2692 = 2.0;
double r2693 = pow(r2689, r2692);
double r2694 = r2691 + r2693;
return r2694;
}



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