Average Error: 29.8 → 0
Time: 870.0ms
Precision: binary64
\[\left(x \cdot y + y\right) - x \cdot y\]
\[y\]
\left(x \cdot y + y\right) - x \cdot y
y
double code(double x, double y) {
	return ((double) (((double) (((double) (x * y)) + y)) - ((double) (x * y))));
}
double code(double x, double y) {
	return y;
}

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 29.8

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

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

    \[\leadsto y\]

Reproduce

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