Average Error: 0.0 → 0.0
Time: 814.0ms
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 r215191 = x;
        double r215192 = y;
        double r215193 = r215191 + r215192;
        double r215194 = 1.0;
        double r215195 = r215192 + r215194;
        double r215196 = r215193 / r215195;
        return r215196;
}

double f(double x, double y) {
        double r215197 = x;
        double r215198 = y;
        double r215199 = r215197 + r215198;
        double r215200 = 1.0;
        double r215201 = r215198 + r215200;
        double r215202 = r215199 / r215201;
        return r215202;
}

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