Average Error: 0.1 → 0.1
Time: 8.6s
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 r548553 = x;
        double r548554 = 3.0;
        double r548555 = r548553 * r548554;
        double r548556 = y;
        double r548557 = r548555 * r548556;
        double r548558 = z;
        double r548559 = r548557 - r548558;
        return r548559;
}

double f(double x, double y, double z) {
        double r548560 = x;
        double r548561 = 3.0;
        double r548562 = r548560 * r548561;
        double r548563 = y;
        double r548564 = r548562 * r548563;
        double r548565 = z;
        double r548566 = r548564 - r548565;
        return r548566;
}

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.1
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 2019208 
(FPCore (x y z)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, B"
  :precision binary64

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

  (- (* (* x 3) y) z))