Average Error: 0.1 → 0.1
Time: 17.2s
Precision: 64
\[x + \left(y \cdot z\right) \cdot z\]
\[x + z \cdot \left(z \cdot y\right)\]
x + \left(y \cdot z\right) \cdot z
x + z \cdot \left(z \cdot y\right)
double f(double x, double y, double z) {
        double r919162 = x;
        double r919163 = y;
        double r919164 = z;
        double r919165 = r919163 * r919164;
        double r919166 = r919165 * r919164;
        double r919167 = r919162 + r919166;
        return r919167;
}

double f(double x, double y, double z) {
        double r919168 = x;
        double r919169 = z;
        double r919170 = y;
        double r919171 = r919169 * r919170;
        double r919172 = r919169 * r919171;
        double r919173 = r919168 + r919172;
        return r919173;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x + \left(y \cdot z\right) \cdot z\]
  2. Final simplification0.1

    \[\leadsto x + z \cdot \left(z \cdot y\right)\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x y z)
  :name "Statistics.Sample:robustSumVarWeighted from math-functions-0.1.5.2"
  (+ x (* (* y z) z)))