Average Error: 0.0 → 0.0
Time: 889.0ms
Precision: binary64
\[x + \left(y - x\right) \cdot t\]
\[x + \left(y - x\right) \cdot t\]
x + \left(y - x\right) \cdot t
x + \left(y - x\right) \cdot t
double code(double x, double y, double t) {
	return ((double) (x + ((double) (((double) (y - x)) * t))));
}
double code(double x, double y, double t) {
	return ((double) (x + ((double) (((double) (y - x)) * t))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x + \left(y - x\right) \cdot t\]
  2. Final simplification0.0

    \[\leadsto x + \left(y - x\right) \cdot t\]

Reproduce

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