Average Error: 0.1 → 0.1
Time: 3.6s
Precision: 64
\[x + \left(y \cdot z\right) \cdot z\]
\[x + \left(y \cdot z\right) \cdot z\]
x + \left(y \cdot z\right) \cdot z
x + \left(y \cdot z\right) \cdot z
double f(double x, double y, double z) {
        double r16582 = x;
        double r16583 = y;
        double r16584 = z;
        double r16585 = r16583 * r16584;
        double r16586 = r16585 * r16584;
        double r16587 = r16582 + r16586;
        return r16587;
}

double f(double x, double y, double z) {
        double r16588 = x;
        double r16589 = y;
        double r16590 = z;
        double r16591 = r16589 * r16590;
        double r16592 = r16591 * r16590;
        double r16593 = r16588 + r16592;
        return r16593;
}

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 + \left(y \cdot z\right) \cdot z\]

Reproduce

herbie shell --seed 2020033 +o rules:numerics
(FPCore (x y z)
  :name "Statistics.Sample:robustSumVarWeighted from math-functions-0.1.5.2"
  :precision binary64
  (+ x (* (* y z) z)))