Average Error: 0.0 → 0.0
Time: 1.3s
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 r422161 = x;
        double r422162 = y;
        double r422163 = z;
        double r422164 = r422162 * r422163;
        double r422165 = r422161 - r422164;
        return r422165;
}

double f(double x, double y, double z) {
        double r422166 = x;
        double r422167 = y;
        double r422168 = z;
        double r422169 = r422167 * r422168;
        double r422170 = r422166 - r422169;
        return r422170;
}

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