Average Error: 0.0 → 0.0
Time: 12.7s
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 r13577 = x;
        double r13578 = y;
        double r13579 = r13577 + r13578;
        double r13580 = 10.0;
        double r13581 = r13579 / r13580;
        return r13581;
}

double f(double x, double y) {
        double r13582 = x;
        double r13583 = y;
        double r13584 = r13582 + r13583;
        double r13585 = 10.0;
        double r13586 = r13584 / r13585;
        return r13586;
}

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