Average Error: 0.0 → 0.0
Time: 1.7s
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 r224925 = x;
        double r224926 = y;
        double r224927 = r224925 + r224926;
        double r224928 = 1.0;
        double r224929 = r224926 + r224928;
        double r224930 = r224927 / r224929;
        return r224930;
}

double f(double x, double y) {
        double r224931 = x;
        double r224932 = y;
        double r224933 = r224931 + r224932;
        double r224934 = 1.0;
        double r224935 = r224932 + r224934;
        double r224936 = r224933 / r224935;
        return r224936;
}

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