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



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