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

Error

Bits error versus a

Bits error versus b

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

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

Reproduce

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