Average Error: 0.0 → 0.0
Time: 6.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 r5202 = x;
        double r5203 = y;
        double r5204 = r5202 + r5203;
        double r5205 = 10.0;
        double r5206 = r5204 / r5205;
        return r5206;
}

double f(double x, double y) {
        double r5207 = x;
        double r5208 = y;
        double r5209 = r5207 + r5208;
        double r5210 = 10.0;
        double r5211 = r5209 / r5210;
        return r5211;
}

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