x + 2 \cdot x
x + 2 \cdot x
double code(double x) {
return ((double) (x + ((double) (2.0 * x))));
}
double code(double x) {
return ((double) (x + ((double) (2.0 * x))));
}



Bits error versus x
Results
Initial program 0
Final simplification0
herbie shell --seed 2020153
(FPCore (x)
:name "(+ x (* 2 x))"
:precision binary64
(+ x (* 2.0 x)))