Average Error: 0.3 → 0.3
Time: 988.0ms
Precision: binary64
\[x + \frac{\left(y - x\right) \cdot z}{100}\]
\[x + \frac{\left(y - x\right) \cdot z}{100}\]
x + \frac{\left(y - x\right) \cdot z}{100}
x + \frac{\left(y - x\right) \cdot z}{100}
double code(double x, double y, double z) {
	return ((double) (x + ((double) (((double) (((double) (y - x)) * z)) / 100.0))));
}
double code(double x, double y, double z) {
	return ((double) (x + ((double) (((double) (((double) (y - x)) * z)) / 100.0))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[x + \frac{\left(y - x\right) \cdot z}{100}\]
  2. Final simplification0.3

    \[\leadsto x + \frac{\left(y - x\right) \cdot z}{100}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y z)
  :name "(+ x (/ (* (- y x) z) 100))"
  :precision binary64
  (+ x (/ (* (- y x) z) 100.0)))