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



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