Average Error: 0.0 → 0.0
Time: 403.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 r222754 = x;
        double r222755 = y;
        double r222756 = r222754 + r222755;
        double r222757 = 1.0;
        double r222758 = r222755 + r222757;
        double r222759 = r222756 / r222758;
        return r222759;
}

double f(double x, double y) {
        double r222760 = x;
        double r222761 = y;
        double r222762 = r222760 + r222761;
        double r222763 = 1.0;
        double r222764 = r222761 + r222763;
        double r222765 = r222762 / r222764;
        return r222765;
}

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