Average Error: 0.0 → 0.0
Time: 6.5s
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 r12543 = x;
        double r12544 = y;
        double r12545 = r12543 + r12544;
        double r12546 = 10.0;
        double r12547 = r12545 / r12546;
        return r12547;
}

double f(double x, double y) {
        double r12548 = x;
        double r12549 = y;
        double r12550 = r12548 + r12549;
        double r12551 = 10.0;
        double r12552 = r12550 / r12551;
        return r12552;
}

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