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 r196827 = x;
        double r196828 = y;
        double r196829 = r196827 + r196828;
        double r196830 = 1.0;
        double r196831 = r196828 + r196830;
        double r196832 = r196829 / r196831;
        return r196832;
}

double f(double x, double y) {
        double r196833 = x;
        double r196834 = y;
        double r196835 = r196833 + r196834;
        double r196836 = 1.0;
        double r196837 = r196834 + r196836;
        double r196838 = r196835 / r196837;
        return r196838;
}

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