Average Error: 0.0 → 0.0
Time: 600.0ms
Precision: binary64
\[a \cdot b - b\]
\[a \cdot b - b\]
a \cdot b - b
a \cdot b - b
double code(double a, double b) {
	return ((double) (((double) (a * b)) - b));
}
double code(double a, double b) {
	return ((double) (((double) (a * b)) - b));
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[a \cdot b - b\]
  2. Final simplification0.0

    \[\leadsto a \cdot b - b\]

Reproduce

herbie shell --seed 2020152 
(FPCore (a b)
  :name "(- (* a b) b)"
  :precision binary64
  (- (* a b) b))