Average Error: 0.0 → 0.0
Time: 720.0ms
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 r8127 = x;
        double r8128 = y;
        double r8129 = r8127 + r8128;
        double r8130 = 10.0;
        double r8131 = r8129 / r8130;
        return r8131;
}

double f(double x, double y) {
        double r8132 = x;
        double r8133 = y;
        double r8134 = r8132 + r8133;
        double r8135 = 10.0;
        double r8136 = r8134 / r8135;
        return r8136;
}

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