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 r4911 = x;
        double r4912 = y;
        double r4913 = r4911 + r4912;
        double r4914 = 10.0;
        double r4915 = r4913 / r4914;
        return r4915;
}

double f(double x, double y) {
        double r4916 = x;
        double r4917 = y;
        double r4918 = r4916 + r4917;
        double r4919 = 10.0;
        double r4920 = r4918 / r4919;
        return r4920;
}

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))