Average Error: 0.0 → 0.0
Time: 387.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 r197890 = x;
        double r197891 = y;
        double r197892 = r197890 + r197891;
        double r197893 = 1.0;
        double r197894 = r197891 + r197893;
        double r197895 = r197892 / r197894;
        return r197895;
}

double f(double x, double y) {
        double r197896 = x;
        double r197897 = y;
        double r197898 = r197896 + r197897;
        double r197899 = 1.0;
        double r197900 = r197897 + r197899;
        double r197901 = r197898 / r197900;
        return r197901;
}

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