Average Error: 0.0 → 0.0
Time: 8.2s
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 r6062 = x;
        double r6063 = y;
        double r6064 = r6062 + r6063;
        double r6065 = 10.0;
        double r6066 = r6064 / r6065;
        return r6066;
}

double f(double x, double y) {
        double r6067 = x;
        double r6068 = y;
        double r6069 = r6067 + r6068;
        double r6070 = 10.0;
        double r6071 = r6069 / r6070;
        return r6071;
}

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