Average Error: 0.0 → 0.0
Time: 1.9s
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 r5854 = x;
        double r5855 = y;
        double r5856 = r5854 + r5855;
        double r5857 = 10.0;
        double r5858 = r5856 / r5857;
        return r5858;
}

double f(double x, double y) {
        double r5859 = x;
        double r5860 = y;
        double r5861 = r5859 + r5860;
        double r5862 = 10.0;
        double r5863 = r5861 / r5862;
        return r5863;
}

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