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

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(x + y\right) + z}{\left(\left(x + y\right) + z\right) + w}\]
  2. Final simplification0.0

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

Reproduce

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