Average Error: 0.0 → 0.0
Time: 25.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 r6454458 = x;
        double r6454459 = y;
        double r6454460 = r6454458 * r6454459;
        double r6454461 = z;
        double r6454462 = t;
        double r6454463 = r6454461 * r6454462;
        double r6454464 = r6454460 + r6454463;
        double r6454465 = a;
        double r6454466 = b;
        double r6454467 = r6454465 * r6454466;
        double r6454468 = r6454464 + r6454467;
        return r6454468;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r6454469 = z;
        double r6454470 = t;
        double r6454471 = r6454469 * r6454470;
        double r6454472 = x;
        double r6454473 = y;
        double r6454474 = r6454472 * r6454473;
        double r6454475 = r6454471 + r6454474;
        double r6454476 = a;
        double r6454477 = b;
        double r6454478 = r6454476 * r6454477;
        double r6454479 = r6454475 + r6454478;
        return r6454479;
}

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