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



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