Average Error: 0.0 → 0.0
Time: 6.3s
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 r4465 = x;
        double r4466 = y;
        double r4467 = r4465 + r4466;
        double r4468 = 10.0;
        double r4469 = r4467 / r4468;
        return r4469;
}

double f(double x, double y) {
        double r4470 = x;
        double r4471 = y;
        double r4472 = r4470 + r4471;
        double r4473 = 10.0;
        double r4474 = r4472 / r4473;
        return r4474;
}

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