Average Error: 0.0 → 0.0
Time: 1.2s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{y + 1}\]
\frac{x + y}{y + 1}
\frac{x + y}{y + 1}
double f(double x, double y) {
        double r208546 = x;
        double r208547 = y;
        double r208548 = r208546 + r208547;
        double r208549 = 1.0;
        double r208550 = r208547 + r208549;
        double r208551 = r208548 / r208550;
        return r208551;
}

double f(double x, double y) {
        double r208552 = x;
        double r208553 = y;
        double r208554 = r208552 + r208553;
        double r208555 = 1.0;
        double r208556 = r208553 + r208555;
        double r208557 = r208554 / r208556;
        return r208557;
}

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}{y + 1}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + y}{y + 1}\]

Reproduce

herbie shell --seed 2020056 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))