Average Error: 0.0 → 0.0
Time: 1.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 r2510 = x;
        double r2511 = y;
        double r2512 = r2510 + r2511;
        double r2513 = 10.0;
        double r2514 = r2512 / r2513;
        return r2514;
}

double f(double x, double y) {
        double r2515 = x;
        double r2516 = y;
        double r2517 = r2515 + r2516;
        double r2518 = 10.0;
        double r2519 = r2517 / r2518;
        return r2519;
}

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