Average Error: 0.0 → 0.0
Time: 12.7s
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 r8852905 = x;
        double r8852906 = y;
        double r8852907 = r8852905 * r8852906;
        double r8852908 = z;
        double r8852909 = t;
        double r8852910 = r8852908 * r8852909;
        double r8852911 = r8852907 + r8852910;
        double r8852912 = a;
        double r8852913 = b;
        double r8852914 = r8852912 * r8852913;
        double r8852915 = r8852911 + r8852914;
        return r8852915;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r8852916 = z;
        double r8852917 = t;
        double r8852918 = r8852916 * r8852917;
        double r8852919 = x;
        double r8852920 = y;
        double r8852921 = r8852919 * r8852920;
        double r8852922 = r8852918 + r8852921;
        double r8852923 = a;
        double r8852924 = b;
        double r8852925 = r8852923 * r8852924;
        double r8852926 = r8852922 + r8852925;
        return r8852926;
}

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