Average Error: 0.0 → 0.0
Time: 1.8s
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 r319703 = x;
        double r319704 = y;
        double r319705 = r319703 + r319704;
        double r319706 = 1.0;
        double r319707 = r319704 + r319706;
        double r319708 = r319705 / r319707;
        return r319708;
}

double f(double x, double y) {
        double r319709 = x;
        double r319710 = y;
        double r319711 = r319709 + r319710;
        double r319712 = 1.0;
        double r319713 = r319710 + r319712;
        double r319714 = r319711 / r319713;
        return r319714;
}

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 2020081 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))