Average Error: 0.0 → 0.0
Time: 1.4s
Precision: binary64
\[\left(x + 1\right) \cdot y - x\]
\[\left(x + 1\right) \cdot y - x\]
\left(x + 1\right) \cdot y - x
\left(x + 1\right) \cdot y - x
(FPCore (x y) :precision binary64 (- (* (+ x 1.0) y) x))
(FPCore (x y) :precision binary64 (- (* (+ x 1.0) y) x))
double code(double x, double y) {
	return ((x + 1.0) * y) - x;
}
double code(double x, double y) {
	return ((x + 1.0) * y) - x;
}

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 0.0

    \[\left(x + 1\right) \cdot y - x\]
  2. Final simplification0.0

    \[\leadsto \left(x + 1\right) \cdot y - x\]

Reproduce

herbie shell --seed 2020224 
(FPCore (x y)
  :name "Data.Colour.SRGB:transferFunction from colour-2.3.3"
  :precision binary64
  (- (* (+ x 1.0) y) x))