Average Error: 0.0 → 0.0
Time: 8.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 r13639 = x;
        double r13640 = y;
        double r13641 = r13639 + r13640;
        double r13642 = 10.0;
        double r13643 = r13641 / r13642;
        return r13643;
}

double f(double x, double y) {
        double r13644 = x;
        double r13645 = y;
        double r13646 = r13644 + r13645;
        double r13647 = 10.0;
        double r13648 = r13646 / r13647;
        return r13648;
}

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