Average Error: 0.0 → 0.0
Time: 727.0ms
Precision: binary64
\[x \cdot a + b\]
\[x \cdot a + b\]
x \cdot a + b
x \cdot a + b
double code(double x, double a, double b) {
	return ((double) (((double) (x * a)) + b));
}
double code(double x, double a, double b) {
	return ((double) (((double) (x * 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 \cdot a + b\]
  2. Final simplification0.0

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

Reproduce

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