Average Error: 23.3 → 23.4
Time: 8.1s
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) (1.0 / ((double) (1.0 / ((double) (((double) (((double) (y * x)) + ((double) (z * ((double) (t - a)))))) / ((double) (y + ((double) (z * ((double) (b - y))))))))))));
}

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

Original23.3
Target18.1
Herbie23.4
\[\]

Derivation

  1. Initial program 23.3

    \[\]
  2. Using strategy rm
  3. Applied clear-num23.4

    \[\leadsto \]
  4. Using strategy rm
  5. Applied clear-num23.4

    \[\leadsto \]
  6. Simplified23.4

    \[\leadsto \]
  7. Final simplification23.4

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(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)))))