Average Error: 0.0 → 0.0
Time: 10.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 r7433 = x;
        double r7434 = y;
        double r7435 = r7433 + r7434;
        double r7436 = 10.0;
        double r7437 = r7435 / r7436;
        return r7437;
}

double f(double x, double y) {
        double r7438 = x;
        double r7439 = y;
        double r7440 = r7438 + r7439;
        double r7441 = 10.0;
        double r7442 = r7440 / r7441;
        return r7442;
}

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