Average Error: 0.0 → 0.0
Time: 8.4s
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 r13791 = x;
        double r13792 = y;
        double r13793 = r13791 + r13792;
        double r13794 = 10.0;
        double r13795 = r13793 / r13794;
        return r13795;
}

double f(double x, double y) {
        double r13796 = x;
        double r13797 = y;
        double r13798 = r13796 + r13797;
        double r13799 = 10.0;
        double r13800 = r13798 / r13799;
        return r13800;
}

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