\frac{h \cdot b}{2}\frac{h \cdot b}{2}double code(double h, double b) {
return ((double) (((double) (h * b)) / 2.0));
}
double code(double h, double b) {
return ((double) (((double) (h * b)) / 2.0));
}



Bits error versus h



Bits error versus b
Results
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020153
(FPCore (h b)
:name "(/ (* h b) 2)"
:precision binary64
(/ (* h b) 2.0))