Average Error: 0.0 → 0.0
Time: 38.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 r8400426 = x;
        double r8400427 = y;
        double r8400428 = r8400426 * r8400427;
        double r8400429 = z;
        double r8400430 = t;
        double r8400431 = r8400429 * r8400430;
        double r8400432 = r8400428 + r8400431;
        double r8400433 = a;
        double r8400434 = b;
        double r8400435 = r8400433 * r8400434;
        double r8400436 = r8400432 + r8400435;
        return r8400436;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r8400437 = z;
        double r8400438 = t;
        double r8400439 = r8400437 * r8400438;
        double r8400440 = x;
        double r8400441 = y;
        double r8400442 = r8400440 * r8400441;
        double r8400443 = r8400439 + r8400442;
        double r8400444 = a;
        double r8400445 = b;
        double r8400446 = r8400444 * r8400445;
        double r8400447 = r8400443 + r8400446;
        return r8400447;
}

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