Average Error: 0.0 → 0.0
Time: 2.9s
Precision: 64
\[x - y \cdot z\]
\[x - y \cdot z\]
x - y \cdot z
x - y \cdot z
double f(double x, double y, double z) {
        double r786789 = x;
        double r786790 = y;
        double r786791 = z;
        double r786792 = r786790 * r786791;
        double r786793 = r786789 - r786792;
        return r786793;
}

double f(double x, double y, double z) {
        double r786794 = x;
        double r786795 = y;
        double r786796 = z;
        double r786797 = r786795 * r786796;
        double r786798 = r786794 - r786797;
        return r786798;
}

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.0
Target0.0
Herbie0.0
\[\frac{x + y \cdot z}{\frac{x + y \cdot z}{x - y \cdot z}}\]

Derivation

  1. Initial program 0.0

    \[x - y \cdot z\]
  2. Final simplification0.0

    \[\leadsto x - y \cdot z\]

Reproduce

herbie shell --seed 2020001 
(FPCore (x y z)
  :name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, C"
  :precision binary64

  :herbie-target
  (/ (+ x (* y z)) (/ (+ x (* y z)) (- x (* y z))))

  (- x (* y z)))