Average Error: 0.0 → 0.0
Time: 2.0s
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 r7083 = x;
        double r7084 = y;
        double r7085 = r7083 + r7084;
        double r7086 = 10.0;
        double r7087 = r7085 / r7086;
        return r7087;
}

double f(double x, double y) {
        double r7088 = x;
        double r7089 = y;
        double r7090 = r7088 + r7089;
        double r7091 = 10.0;
        double r7092 = r7090 / r7091;
        return r7092;
}

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