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 r317971 = x;
        double r317972 = y;
        double r317973 = r317971 + r317972;
        double r317974 = 1.0;
        double r317975 = r317972 + r317974;
        double r317976 = r317973 / r317975;
        return r317976;
}

double f(double x, double y) {
        double r317977 = x;
        double r317978 = y;
        double r317979 = r317977 + r317978;
        double r317980 = 1.0;
        double r317981 = r317978 + r317980;
        double r317982 = r317979 / r317981;
        return r317982;
}

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