Average Error: 0.0 → 0.0
Time: 1.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 r2588 = x;
        double r2589 = y;
        double r2590 = r2588 + r2589;
        double r2591 = 10.0;
        double r2592 = r2590 / r2591;
        return r2592;
}

double f(double x, double y) {
        double r2593 = x;
        double r2594 = y;
        double r2595 = r2593 + r2594;
        double r2596 = 10.0;
        double r2597 = r2595 / r2596;
        return r2597;
}

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