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

Error

Bits error versus a

Bits error versus x

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 x + b\]
  2. Final simplification0.0

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

Reproduce

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