Average Error: 30.6 → 0
Time: 1.1s
Precision: binary64
\[\left(\left(x + y\right) - x\right) - y\]
\[0\]
\left(\left(x + y\right) - x\right) - y
0
double code(double x, double y) {
	return ((double) (((double) (((double) (x + y)) - x)) - y));
}
double code(double x, double y) {
	return 0.0;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 30.6

    \[\left(\left(x + y\right) - x\right) - y\]
  2. Simplified0

    \[\leadsto \color{blue}{0}\]
  3. Final simplification0

    \[\leadsto 0\]

Reproduce

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