Average Error: 0.0 → 0.0
Time: 3.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 r495903 = x;
        double r495904 = y;
        double r495905 = z;
        double r495906 = r495904 * r495905;
        double r495907 = r495903 - r495906;
        return r495907;
}

double f(double x, double y, double z) {
        double r495908 = x;
        double r495909 = y;
        double r495910 = z;
        double r495911 = r495909 * r495910;
        double r495912 = r495908 - r495911;
        return r495912;
}

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