Average Error: 23.3 → 23.3
Time: 7.1s
Precision: 64
\[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\]
\[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\]
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}
double f(double x, double y, double z, double t, double a, double b) {
        double r770977 = x;
        double r770978 = y;
        double r770979 = r770977 * r770978;
        double r770980 = z;
        double r770981 = t;
        double r770982 = a;
        double r770983 = r770981 - r770982;
        double r770984 = r770980 * r770983;
        double r770985 = r770979 + r770984;
        double r770986 = b;
        double r770987 = r770986 - r770978;
        double r770988 = r770980 * r770987;
        double r770989 = r770978 + r770988;
        double r770990 = r770985 / r770989;
        return r770990;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r770991 = x;
        double r770992 = y;
        double r770993 = r770991 * r770992;
        double r770994 = z;
        double r770995 = t;
        double r770996 = a;
        double r770997 = r770995 - r770996;
        double r770998 = r770994 * r770997;
        double r770999 = r770993 + r770998;
        double r771000 = b;
        double r771001 = r771000 - r770992;
        double r771002 = r770994 * r771001;
        double r771003 = r770992 + r771002;
        double r771004 = r770999 / r771003;
        return r771004;
}

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.3
\[\frac{z \cdot t + y \cdot x}{y + z \cdot \left(b - y\right)} - \frac{a}{\left(b - y\right) + \frac{y}{z}}\]

Derivation

  1. Initial program 23.3

    \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\]
  2. Final simplification23.3

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

Reproduce

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