Average Error: 0.0 → 0.0
Time: 580.0ms
Precision: binary64
\[\frac{h \cdot b}{2}\]
\[\frac{h \cdot b}{2}\]
\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));
}

Error

Bits error versus h

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{h \cdot b}{2}\]
  2. Final simplification0.0

    \[\leadsto \frac{h \cdot b}{2}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (h b)
  :name "(/ (* h b) 2)"
  :precision binary64
  (/ (* h b) 2.0))