Average Error: 0.0 → 0.0
Time: 13.4s
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 r12378 = x;
        double r12379 = y;
        double r12380 = r12378 + r12379;
        double r12381 = 10.0;
        double r12382 = r12380 / r12381;
        return r12382;
}

double f(double x, double y) {
        double r12383 = x;
        double r12384 = y;
        double r12385 = r12383 + r12384;
        double r12386 = 10.0;
        double r12387 = r12385 / r12386;
        return r12387;
}

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