Average Error: 0.0 → 0.0
Time: 7.6s
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 r5690874 = x;
        double r5690875 = y;
        double r5690876 = r5690874 * r5690875;
        double r5690877 = z;
        double r5690878 = t;
        double r5690879 = r5690877 * r5690878;
        double r5690880 = r5690876 + r5690879;
        double r5690881 = a;
        double r5690882 = b;
        double r5690883 = r5690881 * r5690882;
        double r5690884 = r5690880 + r5690883;
        return r5690884;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r5690885 = z;
        double r5690886 = t;
        double r5690887 = r5690885 * r5690886;
        double r5690888 = x;
        double r5690889 = y;
        double r5690890 = r5690888 * r5690889;
        double r5690891 = r5690887 + r5690890;
        double r5690892 = a;
        double r5690893 = b;
        double r5690894 = r5690892 * r5690893;
        double r5690895 = r5690891 + r5690894;
        return r5690895;
}

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