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

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

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))