Average Error: 0.0 → 0.0
Time: 16.8s
Precision: 64
\[\frac{x + y}{10}\]
\[\frac{x + y}{10}\]
\frac{x + y}{10}
\frac{x + y}{10}
double f(double x, double y) {
        double r14868 = x;
        double r14869 = y;
        double r14870 = r14868 + r14869;
        double r14871 = 10.0;
        double r14872 = r14870 / r14871;
        return r14872;
}

double f(double x, double y) {
        double r14873 = x;
        double r14874 = y;
        double r14875 = r14873 + r14874;
        double r14876 = 10.0;
        double r14877 = r14875 / r14876;
        return r14877;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{x + y}{10}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + y}{10}\]

Reproduce

herbie shell --seed 2019323 +o rules:numerics
(FPCore (x y)
  :name "Text.Parsec.Token:makeTokenParser from parsec-3.1.9, A"
  :precision binary64
  (/ (+ x y) 10))