Average Error: 0.2 → 0.2
Time: 1.2s
Precision: binary64
\[\left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w\]
\[\left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w\]
\left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w
\left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w
double code(double x, double y, double z, double w) {
	return ((double) (((double) (((double) (((double) (((double) (8.0 / 3.0)) * x)) - ((double) (((double) (5.0 / 2.0)) * y)))) + z)) - ((double) (((double) (1.0 / 6.0)) * w))));
}
double code(double x, double y, double z, double w) {
	return ((double) (((double) (((double) (((double) (((double) (8.0 / 3.0)) * x)) - ((double) (((double) (5.0 / 2.0)) * y)))) + z)) - ((double) (((double) (1.0 / 6.0)) * w))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus w

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w\]
  2. Final simplification0.2

    \[\leadsto \left(\left(\frac{8}{3} \cdot x - \frac{5}{2} \cdot y\right) + z\right) - \frac{1}{6} \cdot w\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y z w)
  :name "(- (+ (- (* (/ 8 3) x) (* (/ 5 2) y)) z) (* (/ 1 6) w))"
  :precision binary64
  (- (+ (- (* (/ 8.0 3.0) x) (* (/ 5.0 2.0) y)) z) (* (/ 1.0 6.0) w)))