Average Error: 22.8 → 22.9
Time: 6.4s
Precision: binary64
\[\]
\[\]
double code(double x, double y, double z, double t, double a, double b) {
	return ((double) (((double) (((double) (x * y)) + ((double) (z * ((double) (t - a)))))) / ((double) (y + ((double) (z * ((double) (b - y))))))));
}
double code(double x, double y, double z, double t, double a, double b) {
	return ((double) (((double) (((double) (x * y)) + ((double) (z * ((double) (t - a)))))) / ((double) (y + ((double) (((double) (z * b)) - ((double) (y * z))))))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original22.8
Target17.5
Herbie22.9
\[\]

Derivation

  1. Initial program 22.8

    \[\]
  2. Using strategy rm
  3. Applied sub-neg22.8

    \[\leadsto \]
  4. Applied distribute-lft-in22.9

    \[\leadsto \]
  5. Simplified22.9

    \[\leadsto \]
  6. Final simplification22.9

    \[\leadsto \]

Reproduce

herbie shell --seed 2020192 
(FPCore (x y z t a b)
  :name "Development.Shake.Progress:decay from shake-0.15.5"
  :precision binary64

  :herbie-target
  (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z))))

  (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))