Average Error: 0.0 → 0.0
Time: 1.2s
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 r1279 = x;
        double r1280 = y;
        double r1281 = r1279 + r1280;
        double r1282 = 10.0;
        double r1283 = r1281 / r1282;
        return r1283;
}

double f(double x, double y) {
        double r1284 = x;
        double r1285 = y;
        double r1286 = r1284 + r1285;
        double r1287 = 10.0;
        double r1288 = r1286 / r1287;
        return r1288;
}

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