Average Error: 0.0 → 0.0
Time: 817.0ms
Precision: binary64
\[\left(\left(x0 + x1\right) + x2\right) + x3\]
\[\left(\left(x0 + x1\right) + x2\right) + x3\]
\left(\left(x0 + x1\right) + x2\right) + x3
\left(\left(x0 + x1\right) + x2\right) + x3
double code(double x0, double x1, double x2, double x3) {
	return ((double) (((double) (((double) (x0 + x1)) + x2)) + x3));
}
double code(double x0, double x1, double x2, double x3) {
	return ((double) (((double) (((double) (x0 + x1)) + x2)) + x3));
}

Error

Bits error versus x0

Bits error versus x1

Bits error versus x2

Bits error versus x3

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(\left(x0 + x1\right) + x2\right) + x3\]
  2. Final simplification0.0

    \[\leadsto \left(\left(x0 + x1\right) + x2\right) + x3\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x0 x1 x2 x3)
  :name "(+ (+ (+ x0 x1) x2) x3)"
  :precision binary64
  (+ (+ (+ x0 x1) x2) x3))