Average Error: 0.0 → 0.0
Time: 20.6s
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 r6618172 = x;
        double r6618173 = y;
        double r6618174 = r6618172 * r6618173;
        double r6618175 = z;
        double r6618176 = t;
        double r6618177 = r6618175 * r6618176;
        double r6618178 = r6618174 + r6618177;
        double r6618179 = a;
        double r6618180 = b;
        double r6618181 = r6618179 * r6618180;
        double r6618182 = r6618178 + r6618181;
        return r6618182;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r6618183 = z;
        double r6618184 = t;
        double r6618185 = r6618183 * r6618184;
        double r6618186 = x;
        double r6618187 = y;
        double r6618188 = r6618186 * r6618187;
        double r6618189 = r6618185 + r6618188;
        double r6618190 = a;
        double r6618191 = b;
        double r6618192 = r6618190 * r6618191;
        double r6618193 = r6618189 + r6618192;
        return r6618193;
}

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 2019170 
(FPCore (x y z t a b)
  :name "Linear.V3:$cdot from linear-1.19.1.3, B"
  (+ (+ (* x y) (* z t)) (* a b)))