Average Error: 22.9 → 22.9
Time: 1.5s
Precision: binary64
\[\frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}\]
\[\frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}\]
\frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}
\frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}
double code(double total, double w, double h) {
	return ((double) (((double) sqrt(((double) (total / ((double) (((double) (w * h)) * 4.0)))))) / 255.0));
}
double code(double total, double w, double h) {
	return ((double) (((double) sqrt(((double) (total / ((double) (((double) (w * h)) * 4.0)))))) / 255.0));
}

Error

Bits error versus total

Bits error versus w

Bits error versus h

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 22.9

    \[\frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}\]
  2. Final simplification22.9

    \[\leadsto \frac{\sqrt{\frac{total}{\left(w \cdot h\right) \cdot 4}}}{255}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (total w h)
  :name "(/ (sqrt (/ total (* (* w h) 4))) 255)"
  :precision binary64
  (/ (sqrt (/ total (* (* w h) 4.0))) 255.0))