Average Error: 0.0 → 0.0
Time: 22.1s
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 r8366833 = x;
        double r8366834 = y;
        double r8366835 = r8366833 * r8366834;
        double r8366836 = z;
        double r8366837 = t;
        double r8366838 = r8366836 * r8366837;
        double r8366839 = r8366835 + r8366838;
        double r8366840 = a;
        double r8366841 = b;
        double r8366842 = r8366840 * r8366841;
        double r8366843 = r8366839 + r8366842;
        return r8366843;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r8366844 = z;
        double r8366845 = t;
        double r8366846 = r8366844 * r8366845;
        double r8366847 = x;
        double r8366848 = y;
        double r8366849 = r8366847 * r8366848;
        double r8366850 = r8366846 + r8366849;
        double r8366851 = a;
        double r8366852 = b;
        double r8366853 = r8366851 * r8366852;
        double r8366854 = r8366850 + r8366853;
        return r8366854;
}

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