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 r2717 = x;
        double r2718 = y;
        double r2719 = r2717 + r2718;
        double r2720 = 10.0;
        double r2721 = r2719 / r2720;
        return r2721;
}

double f(double x, double y) {
        double r2722 = x;
        double r2723 = y;
        double r2724 = r2722 + r2723;
        double r2725 = 10.0;
        double r2726 = r2724 / r2725;
        return r2726;
}

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