Average Error: 23.8 → 23.8
Time: 8.6s
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 r777765 = x;
        double r777766 = y;
        double r777767 = r777765 * r777766;
        double r777768 = z;
        double r777769 = t;
        double r777770 = a;
        double r777771 = r777769 - r777770;
        double r777772 = r777768 * r777771;
        double r777773 = r777767 + r777772;
        double r777774 = b;
        double r777775 = r777774 - r777766;
        double r777776 = r777768 * r777775;
        double r777777 = r777766 + r777776;
        double r777778 = r777773 / r777777;
        return r777778;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r777779 = x;
        double r777780 = y;
        double r777781 = r777779 * r777780;
        double r777782 = z;
        double r777783 = t;
        double r777784 = a;
        double r777785 = r777783 - r777784;
        double r777786 = r777782 * r777785;
        double r777787 = r777781 + r777786;
        double r777788 = b;
        double r777789 = r777788 - r777780;
        double r777790 = r777782 * r777789;
        double r777791 = r777780 + r777790;
        double r777792 = r777787 / r777791;
        return r777792;
}

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.8
Target18.4
Herbie23.8
\[\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.8

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

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

Reproduce

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