Average Error: 0.0 → 0.0
Time: 22.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 r142660 = x;
        double r142661 = y;
        double r142662 = r142660 * r142661;
        double r142663 = z;
        double r142664 = t;
        double r142665 = r142663 * r142664;
        double r142666 = r142662 + r142665;
        double r142667 = a;
        double r142668 = b;
        double r142669 = r142667 * r142668;
        double r142670 = r142666 + r142669;
        return r142670;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r142671 = z;
        double r142672 = t;
        double r142673 = r142671 * r142672;
        double r142674 = x;
        double r142675 = y;
        double r142676 = r142674 * r142675;
        double r142677 = r142673 + r142676;
        double r142678 = a;
        double r142679 = b;
        double r142680 = r142678 * r142679;
        double r142681 = r142677 + r142680;
        return r142681;
}

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