Average Error: 0.0 → 0.0
Time: 21.3s
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 r8360670 = x;
        double r8360671 = y;
        double r8360672 = r8360670 * r8360671;
        double r8360673 = z;
        double r8360674 = t;
        double r8360675 = r8360673 * r8360674;
        double r8360676 = r8360672 + r8360675;
        double r8360677 = a;
        double r8360678 = b;
        double r8360679 = r8360677 * r8360678;
        double r8360680 = r8360676 + r8360679;
        return r8360680;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r8360681 = z;
        double r8360682 = t;
        double r8360683 = r8360681 * r8360682;
        double r8360684 = x;
        double r8360685 = y;
        double r8360686 = r8360684 * r8360685;
        double r8360687 = r8360683 + r8360686;
        double r8360688 = a;
        double r8360689 = b;
        double r8360690 = r8360688 * r8360689;
        double r8360691 = r8360687 + r8360690;
        return r8360691;
}

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