Average Error: 0.0 → 0.0
Time: 11.8s
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 r11496 = x;
        double r11497 = y;
        double r11498 = r11496 + r11497;
        double r11499 = 10.0;
        double r11500 = r11498 / r11499;
        return r11500;
}

double f(double x, double y) {
        double r11501 = x;
        double r11502 = y;
        double r11503 = r11501 + r11502;
        double r11504 = 10.0;
        double r11505 = r11503 / r11504;
        return r11505;
}

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