Average Error: 0.0 → 0.0
Time: 8.1s
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 r11602 = x;
        double r11603 = y;
        double r11604 = r11602 + r11603;
        double r11605 = 10.0;
        double r11606 = r11604 / r11605;
        return r11606;
}

double f(double x, double y) {
        double r11607 = x;
        double r11608 = y;
        double r11609 = r11607 + r11608;
        double r11610 = 10.0;
        double r11611 = r11609 / r11610;
        return r11611;
}

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