\left(1 + x\right) - 1
x
double code(double x) {
return ((double) (((double) (1.0 + x)) - 1.0));
}
double code(double x) {
return x;
}



Bits error versus x
Results
Initial program 29.6
Simplified0
Final simplification0
herbie shell --seed 2020152
(FPCore (x)
:name "(- (+ 1 x) 1)"
:precision binary64
(- (+ 1.0 x) 1.0))