Average Error: 0.0 → 0.0
Time: 18.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 r14538 = x;
        double r14539 = y;
        double r14540 = r14538 + r14539;
        double r14541 = 10.0;
        double r14542 = r14540 / r14541;
        return r14542;
}

double f(double x, double y) {
        double r14543 = x;
        double r14544 = y;
        double r14545 = r14543 + r14544;
        double r14546 = 10.0;
        double r14547 = r14545 / r14546;
        return r14547;
}

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