Average Error: 0.0 → 0.0
Time: 3.6s
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 r17509 = x;
        double r17510 = y;
        double r17511 = r17509 + r17510;
        double r17512 = 10.0;
        double r17513 = r17511 / r17512;
        return r17513;
}

double f(double x, double y) {
        double r17514 = x;
        double r17515 = y;
        double r17516 = r17514 + r17515;
        double r17517 = 10.0;
        double r17518 = r17516 / r17517;
        return r17518;
}

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