Average Error: 0.1 → 0.1
Time: 28.2s
Precision: 64
\[\left(x \cdot 3\right) \cdot y - z\]
\[\left(x \cdot 3\right) \cdot y - z\]
\left(x \cdot 3\right) \cdot y - z
\left(x \cdot 3\right) \cdot y - z
double f(double x, double y, double z) {
        double r37726613 = x;
        double r37726614 = 3.0;
        double r37726615 = r37726613 * r37726614;
        double r37726616 = y;
        double r37726617 = r37726615 * r37726616;
        double r37726618 = z;
        double r37726619 = r37726617 - r37726618;
        return r37726619;
}

double f(double x, double y, double z) {
        double r37726620 = x;
        double r37726621 = 3.0;
        double r37726622 = r37726620 * r37726621;
        double r37726623 = y;
        double r37726624 = r37726622 * r37726623;
        double r37726625 = z;
        double r37726626 = r37726624 - r37726625;
        return r37726626;
}

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

Target

Original0.1
Target0.2
Herbie0.1
\[x \cdot \left(3 \cdot y\right) - z\]

Derivation

  1. Initial program 0.1

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

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

Reproduce

herbie shell --seed 2019168 
(FPCore (x y z)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, B"

  :herbie-target
  (- (* x (* 3.0 y)) z)

  (- (* (* x 3.0) y) z))