Average Error: 0.0 → 0.0
Time: 13.9s
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 r19065 = x;
        double r19066 = y;
        double r19067 = r19065 + r19066;
        double r19068 = 10.0;
        double r19069 = r19067 / r19068;
        return r19069;
}

double f(double x, double y) {
        double r19070 = x;
        double r19071 = y;
        double r19072 = r19070 + r19071;
        double r19073 = 10.0;
        double r19074 = r19072 / r19073;
        return r19074;
}

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 2019209 +o rules:numerics
(FPCore (x y)
  :name "Text.Parsec.Token:makeTokenParser from parsec-3.1.9, A"
  :precision binary64
  (/ (+ x y) 10))