Average Error: 0.1 → 0.1
Time: 14.8s
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 r880459 = x;
        double r880460 = y;
        double r880461 = z;
        double r880462 = r880460 * r880461;
        double r880463 = r880462 * r880461;
        double r880464 = r880459 + r880463;
        return r880464;
}

double f(double x, double y, double z) {
        double r880465 = x;
        double r880466 = z;
        double r880467 = y;
        double r880468 = r880466 * r880467;
        double r880469 = r880466 * r880468;
        double r880470 = r880465 + r880469;
        return r880470;
}

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