Average Error: 0.0 → 0.0
Time: 7.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 r4802 = x;
        double r4803 = y;
        double r4804 = r4802 + r4803;
        double r4805 = 10.0;
        double r4806 = r4804 / r4805;
        return r4806;
}

double f(double x, double y) {
        double r4807 = x;
        double r4808 = y;
        double r4809 = r4807 + r4808;
        double r4810 = 10.0;
        double r4811 = r4809 / r4810;
        return r4811;
}

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