Average Error: 0.0 → 0.0
Time: 7.5s
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 r5139 = x;
        double r5140 = y;
        double r5141 = r5139 + r5140;
        double r5142 = 10.0;
        double r5143 = r5141 / r5142;
        return r5143;
}

double f(double x, double y) {
        double r5144 = x;
        double r5145 = y;
        double r5146 = r5144 + r5145;
        double r5147 = 10.0;
        double r5148 = r5146 / r5147;
        return r5148;
}

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