Average Error: 0.0 → 0.0
Time: 1.5s
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 r244687 = x;
        double r244688 = y;
        double r244689 = r244687 + r244688;
        double r244690 = 1.0;
        double r244691 = r244688 + r244690;
        double r244692 = r244689 / r244691;
        return r244692;
}

double f(double x, double y) {
        double r244693 = x;
        double r244694 = y;
        double r244695 = r244693 + r244694;
        double r244696 = 1.0;
        double r244697 = r244694 + r244696;
        double r244698 = r244695 / r244697;
        return r244698;
}

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