Average Error: 24.0 → 24.0
Time: 24.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 r57619931 = x;
        double r57619932 = y;
        double r57619933 = r57619931 * r57619932;
        double r57619934 = z;
        double r57619935 = t;
        double r57619936 = a;
        double r57619937 = r57619935 - r57619936;
        double r57619938 = r57619934 * r57619937;
        double r57619939 = r57619933 + r57619938;
        double r57619940 = b;
        double r57619941 = r57619940 - r57619932;
        double r57619942 = r57619934 * r57619941;
        double r57619943 = r57619932 + r57619942;
        double r57619944 = r57619939 / r57619943;
        return r57619944;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r57619945 = x;
        double r57619946 = y;
        double r57619947 = r57619945 * r57619946;
        double r57619948 = z;
        double r57619949 = t;
        double r57619950 = a;
        double r57619951 = r57619949 - r57619950;
        double r57619952 = r57619948 * r57619951;
        double r57619953 = r57619947 + r57619952;
        double r57619954 = b;
        double r57619955 = r57619954 - r57619946;
        double r57619956 = r57619948 * r57619955;
        double r57619957 = r57619946 + r57619956;
        double r57619958 = r57619953 / r57619957;
        return r57619958;
}

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

Original24.0
Target18.5
Herbie24.0
\[\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 24.0

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

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

Reproduce

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

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

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