Average Error: 28.3 → 28.3
Time: 1.1s
Precision: binary64
\[\frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}\]
\[\frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}\]
\frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}
\frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}
double code(double x, double y, double z) {
	return ((double) (((double) (((double) (x * ((double) (y - 5.0)))) + ((double) (z * 11.0)))) / ((double) (((double) (x * ((double) (x - 3.0)))) + ((double) (z * ((double) (z - 7.0))))))));
}
double code(double x, double y, double z) {
	return ((double) (((double) (((double) (x * ((double) (y - 5.0)))) + ((double) (z * 11.0)))) / ((double) (((double) (x * ((double) (x - 3.0)))) + ((double) (z * ((double) (z - 7.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 28.3

    \[\frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}\]
  2. Final simplification28.3

    \[\leadsto \frac{x \cdot \left(y - 5\right) + z \cdot 11}{x \cdot \left(x - 3\right) + z \cdot \left(z - 7\right)}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y z)
  :name "(/ (+ (* x (- y 5)) (* z 11)) (+ (* x (- x 3)) (* z (- z 7))))"
  :precision binary64
  (/ (+ (* x (- y 5.0)) (* z 11.0)) (+ (* x (- x 3.0)) (* z (- z 7.0)))))