Average Error: 0.0 → 0.0
Time: 7.6s
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 r161889 = x;
        double r161890 = y;
        double r161891 = r161889 + r161890;
        double r161892 = 1.0;
        double r161893 = r161890 + r161892;
        double r161894 = r161891 / r161893;
        return r161894;
}

double f(double x, double y) {
        double r161895 = x;
        double r161896 = y;
        double r161897 = r161895 + r161896;
        double r161898 = 1.0;
        double r161899 = r161896 + r161898;
        double r161900 = r161897 / r161899;
        return r161900;
}

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