Average Error: 0.0 → 0.0
Time: 17.9s
Precision: 64
\[\left(x \cdot y + z \cdot t\right) + a \cdot b\]
\[\left(z \cdot t + x \cdot y\right) + a \cdot b\]
\left(x \cdot y + z \cdot t\right) + a \cdot b
\left(z \cdot t + x \cdot y\right) + a \cdot b
double f(double x, double y, double z, double t, double a, double b) {
        double r7997734 = x;
        double r7997735 = y;
        double r7997736 = r7997734 * r7997735;
        double r7997737 = z;
        double r7997738 = t;
        double r7997739 = r7997737 * r7997738;
        double r7997740 = r7997736 + r7997739;
        double r7997741 = a;
        double r7997742 = b;
        double r7997743 = r7997741 * r7997742;
        double r7997744 = r7997740 + r7997743;
        return r7997744;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r7997745 = z;
        double r7997746 = t;
        double r7997747 = r7997745 * r7997746;
        double r7997748 = x;
        double r7997749 = y;
        double r7997750 = r7997748 * r7997749;
        double r7997751 = r7997747 + r7997750;
        double r7997752 = a;
        double r7997753 = b;
        double r7997754 = r7997752 * r7997753;
        double r7997755 = r7997751 + r7997754;
        return r7997755;
}

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

Derivation

  1. Initial program 0.0

    \[\left(x \cdot y + z \cdot t\right) + a \cdot b\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019168 
(FPCore (x y z t a b)
  :name "Linear.V3:$cdot from linear-1.19.1.3, B"
  (+ (+ (* x y) (* z t)) (* a b)))