Average Error: 0.0 → 0.0
Time: 1.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 r4696 = x;
        double r4697 = y;
        double r4698 = r4696 + r4697;
        double r4699 = 10.0;
        double r4700 = r4698 / r4699;
        return r4700;
}

double f(double x, double y) {
        double r4701 = x;
        double r4702 = y;
        double r4703 = r4701 + r4702;
        double r4704 = 10.0;
        double r4705 = r4703 / r4704;
        return r4705;
}

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