Average Error: 0.1 → 0.1
Time: 11.3s
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 r28492 = x;
        double r28493 = y;
        double r28494 = z;
        double r28495 = r28493 * r28494;
        double r28496 = r28495 * r28494;
        double r28497 = r28492 + r28496;
        return r28497;
}

double f(double x, double y, double z) {
        double r28498 = x;
        double r28499 = z;
        double r28500 = y;
        double r28501 = r28499 * r28500;
        double r28502 = r28499 * r28501;
        double r28503 = r28498 + r28502;
        return r28503;
}

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 2019196 
(FPCore (x y z)
  :name "Statistics.Sample:robustSumVarWeighted from math-functions-0.1.5.2"
  (+ x (* (* y z) z)))