Average Error: 0.0 → 0.0
Time: 887.0ms
Precision: binary64
\[\frac{\left(\left(x + y\right) + z\right) + w}{4}\]
\[\frac{\left(\left(x + y\right) + z\right) + w}{4}\]
\frac{\left(\left(x + y\right) + z\right) + w}{4}
\frac{\left(\left(x + y\right) + z\right) + w}{4}
double code(double x, double y, double z, double w) {
	return ((double) (((double) (((double) (((double) (x + y)) + z)) + w)) / 4.0));
}
double code(double x, double y, double z, double w) {
	return ((double) (((double) (((double) (((double) (x + y)) + z)) + w)) / 4.0));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus w

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{\left(\left(x + y\right) + z\right) + w}{4}\]
  2. Final simplification0.0

    \[\leadsto \frac{\left(\left(x + y\right) + z\right) + w}{4}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y z w)
  :name "(/ (+ (+ (+ x y) z) w) 4)"
  :precision binary64
  (/ (+ (+ (+ x y) z) w) 4.0))