Average Error: 0.0 → 0.0
Time: 1.1s
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 r1376 = x;
        double r1377 = y;
        double r1378 = r1376 + r1377;
        double r1379 = 10.0;
        double r1380 = r1378 / r1379;
        return r1380;
}

double f(double x, double y) {
        double r1381 = x;
        double r1382 = y;
        double r1383 = r1381 + r1382;
        double r1384 = 10.0;
        double r1385 = r1383 / r1384;
        return r1385;
}

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