Average Error: 0.0 → 0.0
Time: 1.6s
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 r4689 = x;
        double r4690 = y;
        double r4691 = r4689 + r4690;
        double r4692 = 10.0;
        double r4693 = r4691 / r4692;
        return r4693;
}

double f(double x, double y) {
        double r4694 = x;
        double r4695 = y;
        double r4696 = r4694 + r4695;
        double r4697 = 10.0;
        double r4698 = r4696 / r4697;
        return r4698;
}

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