Average Error: 0.1 → 0.1
Time: 7.8s
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 r469551 = x;
        double r469552 = 3.0;
        double r469553 = r469551 * r469552;
        double r469554 = y;
        double r469555 = r469553 * r469554;
        double r469556 = z;
        double r469557 = r469555 - r469556;
        return r469557;
}

double f(double x, double y, double z) {
        double r469558 = x;
        double r469559 = 3.0;
        double r469560 = r469558 * r469559;
        double r469561 = y;
        double r469562 = r469560 * r469561;
        double r469563 = z;
        double r469564 = r469562 - r469563;
        return r469564;
}

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 2019303 
(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))