Average Error: 0.0 → 0.0
Time: 1.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 r220920 = x;
        double r220921 = y;
        double r220922 = r220920 + r220921;
        double r220923 = 1.0;
        double r220924 = r220921 + r220923;
        double r220925 = r220922 / r220924;
        return r220925;
}

double f(double x, double y) {
        double r220926 = x;
        double r220927 = y;
        double r220928 = r220926 + r220927;
        double r220929 = 1.0;
        double r220930 = r220927 + r220929;
        double r220931 = r220928 / r220930;
        return r220931;
}

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