Average Error: 0.0 → 0.0
Time: 12.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 r9364 = x;
        double r9365 = y;
        double r9366 = r9364 + r9365;
        double r9367 = 10.0;
        double r9368 = r9366 / r9367;
        return r9368;
}

double f(double x, double y) {
        double r9369 = x;
        double r9370 = y;
        double r9371 = r9369 + r9370;
        double r9372 = 10.0;
        double r9373 = r9371 / r9372;
        return r9373;
}

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