Average Error: 0.0 → 0.0
Time: 2.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 r288886 = x;
        double r288887 = y;
        double r288888 = r288886 + r288887;
        double r288889 = 1.0;
        double r288890 = r288887 + r288889;
        double r288891 = r288888 / r288890;
        return r288891;
}

double f(double x, double y) {
        double r288892 = x;
        double r288893 = y;
        double r288894 = r288892 + r288893;
        double r288895 = 1.0;
        double r288896 = r288893 + r288895;
        double r288897 = r288894 / r288896;
        return r288897;
}

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