\frac{x + x}{x}2
double code(double x) {
return ((double) (((double) (x + x)) / x));
}
double code(double x) {
return 2.0;
}



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