Average Error: 0.0 → 0.0
Time: 11.8s
Precision: 64
\[\frac{a}{a + b}\]
\[\frac{a}{a + b}\]
\frac{a}{a + b}
\frac{a}{a + b}
double f(double a, double b) {
        double r37547323 = a;
        double r37547324 = b;
        double r37547325 = r37547323 + r37547324;
        double r37547326 = r37547323 / r37547325;
        return r37547326;
}

double f(double a, double b) {
        double r37547327 = a;
        double r37547328 = b;
        double r37547329 = r37547327 + r37547328;
        double r37547330 = r37547327 / r37547329;
        return r37547330;
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{a}{a + b}\]
  2. Final simplification0.0

    \[\leadsto \frac{a}{a + b}\]

Reproduce

herbie shell --seed 1 
(FPCore (a b)
  :name "a/(a+b)"
  (/ a (+ a b)))