Average Error: 0.0 → 0.0
Time: 1.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 r5560 = x;
        double r5561 = y;
        double r5562 = r5560 + r5561;
        double r5563 = 10.0;
        double r5564 = r5562 / r5563;
        return r5564;
}

double f(double x, double y) {
        double r5565 = x;
        double r5566 = y;
        double r5567 = r5565 + r5566;
        double r5568 = 10.0;
        double r5569 = r5567 / r5568;
        return r5569;
}

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