Average Error: 0.0 → 0.0
Time: 9.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 r1428616 = x;
        double r1428617 = y;
        double r1428618 = r1428616 + r1428617;
        double r1428619 = 10.0;
        double r1428620 = r1428618 / r1428619;
        return r1428620;
}

double f(double x, double y) {
        double r1428621 = x;
        double r1428622 = y;
        double r1428623 = r1428621 + r1428622;
        double r1428624 = 10.0;
        double r1428625 = r1428623 / r1428624;
        return r1428625;
}

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