Average Error: 0.0 → 0.0
Time: 6.7s
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 r12497 = x;
        double r12498 = y;
        double r12499 = r12497 + r12498;
        double r12500 = 10.0;
        double r12501 = r12499 / r12500;
        return r12501;
}

double f(double x, double y) {
        double r12502 = x;
        double r12503 = y;
        double r12504 = r12502 + r12503;
        double r12505 = 10.0;
        double r12506 = r12504 / r12505;
        return r12506;
}

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