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 r2303 = x;
        double r2304 = y;
        double r2305 = r2303 + r2304;
        double r2306 = 10.0;
        double r2307 = r2305 / r2306;
        return r2307;
}

double f(double x, double y) {
        double r2308 = x;
        double r2309 = y;
        double r2310 = r2308 + r2309;
        double r2311 = 10.0;
        double r2312 = r2310 / r2311;
        return r2312;
}

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