Average Error: 0.0 → 0.0
Time: 1.0s
Precision: binary64
\[c11 \cdot x + c12 \cdot y\]
\[c11 \cdot x + c12 \cdot y\]
c11 \cdot x + c12 \cdot y
c11 \cdot x + c12 \cdot y
double code(double c11, double x, double c12, double y) {
	return ((double) (((double) (c11 * x)) + ((double) (c12 * y))));
}
double code(double c11, double x, double c12, double y) {
	return ((double) (((double) (c11 * x)) + ((double) (c12 * y))));
}

Error

Bits error versus c11

Bits error versus x

Bits error versus c12

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[c11 \cdot x + c12 \cdot y\]
  2. Final simplification0.0

    \[\leadsto c11 \cdot x + c12 \cdot y\]

Reproduce

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