\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r2688 = x;
double r2689 = 1.0;
double r2690 = r2688 + r2689;
double r2691 = r2690 * r2690;
double r2692 = r2691 - r2689;
return r2692;
}
double f(double x) {
double r2693 = x;
double r2694 = 2.0;
double r2695 = r2693 * r2694;
double r2696 = 2.0;
double r2697 = pow(r2693, r2696);
double r2698 = r2695 + r2697;
return r2698;
}



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