Average Error: 0.0 → 0.0
Time: 14.2s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{1 + y}\]
\frac{x + y}{y + 1}
\frac{x + y}{1 + y}
double f(double x, double y) {
        double r5817550 = x;
        double r5817551 = y;
        double r5817552 = r5817550 + r5817551;
        double r5817553 = 1.0;
        double r5817554 = r5817551 + r5817553;
        double r5817555 = r5817552 / r5817554;
        return r5817555;
}

double f(double x, double y) {
        double r5817556 = x;
        double r5817557 = y;
        double r5817558 = r5817556 + r5817557;
        double r5817559 = 1.0;
        double r5817560 = r5817559 + r5817557;
        double r5817561 = r5817558 / r5817560;
        return r5817561;
}

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}{1 + y}\]

Reproduce

herbie shell --seed 2019200 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))