Average Error: 0.1 → 0.1
Time: 10.9s
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 r900488 = x;
        double r900489 = y;
        double r900490 = z;
        double r900491 = r900489 * r900490;
        double r900492 = r900491 * r900490;
        double r900493 = r900488 + r900492;
        return r900493;
}

double f(double x, double y, double z) {
        double r900494 = x;
        double r900495 = z;
        double r900496 = y;
        double r900497 = r900495 * r900496;
        double r900498 = r900495 * r900497;
        double r900499 = r900494 + r900498;
        return r900499;
}

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