Average Error: 0.0 → 0.0
Time: 22.9s
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 r7632287 = x;
        double r7632288 = y;
        double r7632289 = r7632287 * r7632288;
        double r7632290 = z;
        double r7632291 = t;
        double r7632292 = r7632290 * r7632291;
        double r7632293 = r7632289 + r7632292;
        double r7632294 = a;
        double r7632295 = b;
        double r7632296 = r7632294 * r7632295;
        double r7632297 = r7632293 + r7632296;
        return r7632297;
}

double f(double x, double y, double z, double t, double a, double b) {
        double r7632298 = z;
        double r7632299 = t;
        double r7632300 = r7632298 * r7632299;
        double r7632301 = x;
        double r7632302 = y;
        double r7632303 = r7632301 * r7632302;
        double r7632304 = r7632300 + r7632303;
        double r7632305 = a;
        double r7632306 = b;
        double r7632307 = r7632305 * r7632306;
        double r7632308 = r7632304 + r7632307;
        return r7632308;
}

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