Average Error: 0.1 → 0.1
Time: 607.0ms
Precision: binary64
\[2 \cdot x - 3 \cdot y\]
\[2 \cdot x - 3 \cdot y\]
2 \cdot x - 3 \cdot y
2 \cdot x - 3 \cdot y
double code(double x, double y) {
	return ((double) (((double) (2.0 * x)) - ((double) (3.0 * y))));
}
double code(double x, double y) {
	return ((double) (((double) (2.0 * x)) - ((double) (3.0 * 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 0.1

    \[2 \cdot x - 3 \cdot y\]
  2. Final simplification0.1

    \[\leadsto 2 \cdot x - 3 \cdot y\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(- (* 2 x) (* 3 y))"
  :precision binary64
  (- (* 2.0 x) (* 3.0 y)))