\left(x + 1\right) \cdot \left(x + 1\right) - 1
x \cdot 2 + {x}^{2}double f(double x) {
double r16390 = x;
double r16391 = 1.0;
double r16392 = r16390 + r16391;
double r16393 = r16392 * r16392;
double r16394 = r16393 - r16391;
return r16394;
}
double f(double x) {
double r16395 = x;
double r16396 = 2.0;
double r16397 = r16395 * r16396;
double r16398 = 2.0;
double r16399 = pow(r16395, r16398);
double r16400 = r16397 + r16399;
return r16400;
}



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