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

Error

Bits error versus x

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

    \[x + a \cdot b\]
  2. Final simplification0.0

    \[\leadsto x + a \cdot b\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x a b)
  :name "(+ x (* a b))"
  :precision binary64
  (+ x (* a b)))