Average Error: 0.0 → 0.0
Time: 9.3s
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 r11393 = x;
        double r11394 = y;
        double r11395 = r11393 + r11394;
        double r11396 = 10.0;
        double r11397 = r11395 / r11396;
        return r11397;
}

double f(double x, double y) {
        double r11398 = x;
        double r11399 = y;
        double r11400 = r11398 + r11399;
        double r11401 = 10.0;
        double r11402 = r11400 / r11401;
        return r11402;
}

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. Simplified0.0

    \[\leadsto \color{blue}{\frac{y + x}{10}}\]
  3. Final simplification0.0

    \[\leadsto \frac{x + y}{10}\]

Reproduce

herbie shell --seed 2019196 +o rules:numerics
(FPCore (x y)
  :name "Text.Parsec.Token:makeTokenParser from parsec-3.1.9, A"
  (/ (+ x y) 10.0))