Average Error: 0.0 → 0.0
Time: 9.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 r3037 = x;
        double r3038 = y;
        double r3039 = r3037 + r3038;
        double r3040 = 10.0;
        double r3041 = r3039 / r3040;
        return r3041;
}

double f(double x, double y) {
        double r3042 = x;
        double r3043 = y;
        double r3044 = r3042 + r3043;
        double r3045 = 10.0;
        double r3046 = r3044 / r3045;
        return r3046;
}

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