Average Error: 0.0 → 0.0
Time: 1.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 r64 = x;
        double r65 = y;
        double r66 = r64 + r65;
        double r67 = 10.0;
        double r68 = r66 / r67;
        return r68;
}

double f(double x, double y) {
        double r69 = x;
        double r70 = y;
        double r71 = r69 + r70;
        double r72 = 10.0;
        double r73 = r71 / r72;
        return r73;
}

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