Average Error: 0.0 → 0.0
Time: 16.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 r12176 = x;
        double r12177 = y;
        double r12178 = r12176 + r12177;
        double r12179 = 10.0;
        double r12180 = r12178 / r12179;
        return r12180;
}

double f(double x, double y) {
        double r12181 = x;
        double r12182 = y;
        double r12183 = r12181 + r12182;
        double r12184 = 10.0;
        double r12185 = r12183 / r12184;
        return r12185;
}

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