Average Error: 0.0 → 0.0
Time: 9.1s
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 r9570 = x;
        double r9571 = y;
        double r9572 = r9570 + r9571;
        double r9573 = 10.0;
        double r9574 = r9572 / r9573;
        return r9574;
}

double f(double x, double y) {
        double r9575 = x;
        double r9576 = y;
        double r9577 = r9575 + r9576;
        double r9578 = 10.0;
        double r9579 = r9577 / r9578;
        return r9579;
}

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