Average Error: 23.8 → 23.8
Time: 20.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 r590588 = x;
        double r590589 = y;
        double r590590 = r590588 * r590589;
        double r590591 = z;
        double r590592 = t;
        double r590593 = a;
        double r590594 = r590592 - r590593;
        double r590595 = r590591 * r590594;
        double r590596 = r590590 + r590595;
        double r590597 = b;
        double r590598 = r590597 - r590589;
        double r590599 = r590591 * r590598;
        double r590600 = r590589 + r590599;
        double r590601 = r590596 / r590600;
        return r590601;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r590602 = x;
        double r590603 = y;
        double r590604 = r590602 * r590603;
        double r590605 = z;
        double r590606 = t;
        double r590607 = a;
        double r590608 = r590606 - r590607;
        double r590609 = r590605 * r590608;
        double r590610 = r590604 + r590609;
        double r590611 = b;
        double r590612 = r590611 - r590603;
        double r590613 = r590605 * r590612;
        double r590614 = r590603 + r590613;
        double r590615 = r590610 / r590614;
        return r590615;
}

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)))))