Average Error: 0.0 → 0.0
Time: 1.9s
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 r336198 = x;
        double r336199 = y;
        double r336200 = r336198 + r336199;
        double r336201 = 1.0;
        double r336202 = r336199 + r336201;
        double r336203 = r336200 / r336202;
        return r336203;
}

double f(double x, double y) {
        double r336204 = x;
        double r336205 = y;
        double r336206 = r336204 + r336205;
        double r336207 = 1.0;
        double r336208 = r336205 + r336207;
        double r336209 = r336206 / r336208;
        return r336209;
}

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