Average Error: 0.0 → 0.0
Time: 7.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 r12902 = x;
        double r12903 = y;
        double r12904 = r12902 + r12903;
        double r12905 = 10.0;
        double r12906 = r12904 / r12905;
        return r12906;
}

double f(double x, double y) {
        double r12907 = x;
        double r12908 = y;
        double r12909 = r12907 + r12908;
        double r12910 = 10.0;
        double r12911 = r12909 / r12910;
        return r12911;
}

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