Average Error: 0.0 → 0.0
Time: 20.4s
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 r6465669 = x;
        double r6465670 = y;
        double r6465671 = r6465669 * r6465670;
        double r6465672 = z;
        double r6465673 = t;
        double r6465674 = r6465672 * r6465673;
        double r6465675 = r6465671 + r6465674;
        double r6465676 = a;
        double r6465677 = b;
        double r6465678 = r6465676 * r6465677;
        double r6465679 = r6465675 + r6465678;
        return r6465679;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r6465680 = z;
        double r6465681 = t;
        double r6465682 = r6465680 * r6465681;
        double r6465683 = x;
        double r6465684 = y;
        double r6465685 = r6465683 * r6465684;
        double r6465686 = r6465682 + r6465685;
        double r6465687 = a;
        double r6465688 = b;
        double r6465689 = r6465687 * r6465688;
        double r6465690 = r6465686 + r6465689;
        return r6465690;
}

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