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 r2706 = x;
        double r2707 = y;
        double r2708 = r2706 + r2707;
        double r2709 = 10.0;
        double r2710 = r2708 / r2709;
        return r2710;
}

double f(double x, double y) {
        double r2711 = x;
        double r2712 = y;
        double r2713 = r2711 + r2712;
        double r2714 = 10.0;
        double r2715 = r2713 / r2714;
        return r2715;
}

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