Average Error: 30.7 → 0
Time: 1.0s
Precision: binary64
\[\left(\left(x + y\right) - y\right) - x\]
\[0\]
\left(\left(x + y\right) - y\right) - x
0
double code(double x, double y) {
	return ((double) (((double) (((double) (x + y)) - y)) - x));
}
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.7

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

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

    \[\leadsto 0\]

Reproduce

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