Average Error: 0.0 → 0.0
Time: 1.4s
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 r219870 = x;
        double r219871 = y;
        double r219872 = r219870 + r219871;
        double r219873 = 1.0;
        double r219874 = r219871 + r219873;
        double r219875 = r219872 / r219874;
        return r219875;
}

double f(double x, double y) {
        double r219876 = x;
        double r219877 = y;
        double r219878 = r219876 + r219877;
        double r219879 = 1.0;
        double r219880 = r219877 + r219879;
        double r219881 = r219878 / r219880;
        return r219881;
}

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