Average Error: 0.0 → 0.0
Time: 11.2s
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 r3167273 = x;
        double r3167274 = y;
        double r3167275 = r3167273 * r3167274;
        double r3167276 = z;
        double r3167277 = t;
        double r3167278 = r3167276 * r3167277;
        double r3167279 = r3167275 + r3167278;
        double r3167280 = a;
        double r3167281 = b;
        double r3167282 = r3167280 * r3167281;
        double r3167283 = r3167279 + r3167282;
        return r3167283;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r3167284 = z;
        double r3167285 = t;
        double r3167286 = r3167284 * r3167285;
        double r3167287 = x;
        double r3167288 = y;
        double r3167289 = r3167287 * r3167288;
        double r3167290 = r3167286 + r3167289;
        double r3167291 = a;
        double r3167292 = b;
        double r3167293 = r3167291 * r3167292;
        double r3167294 = r3167290 + r3167293;
        return r3167294;
}

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