Average Error: 0.0 → 0.0
Time: 7.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 r6036465 = x;
        double r6036466 = y;
        double r6036467 = r6036465 * r6036466;
        double r6036468 = z;
        double r6036469 = t;
        double r6036470 = r6036468 * r6036469;
        double r6036471 = r6036467 + r6036470;
        double r6036472 = a;
        double r6036473 = b;
        double r6036474 = r6036472 * r6036473;
        double r6036475 = r6036471 + r6036474;
        return r6036475;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r6036476 = z;
        double r6036477 = t;
        double r6036478 = r6036476 * r6036477;
        double r6036479 = x;
        double r6036480 = y;
        double r6036481 = r6036479 * r6036480;
        double r6036482 = r6036478 + r6036481;
        double r6036483 = a;
        double r6036484 = b;
        double r6036485 = r6036483 * r6036484;
        double r6036486 = r6036482 + r6036485;
        return r6036486;
}

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