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 r4856 = x;
        double r4857 = y;
        double r4858 = r4856 + r4857;
        double r4859 = 10.0;
        double r4860 = r4858 / r4859;
        return r4860;
}

double f(double x, double y) {
        double r4861 = x;
        double r4862 = y;
        double r4863 = r4861 + r4862;
        double r4864 = 10.0;
        double r4865 = r4863 / r4864;
        return r4865;
}

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