Average Error: 0.0 → 0.0
Time: 9.4s
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 r219804 = x;
        double r219805 = y;
        double r219806 = r219804 + r219805;
        double r219807 = 1.0;
        double r219808 = r219805 + r219807;
        double r219809 = r219806 / r219808;
        return r219809;
}

double f(double x, double y) {
        double r219810 = x;
        double r219811 = y;
        double r219812 = r219810 + r219811;
        double r219813 = 1.0;
        double r219814 = r219811 + r219813;
        double r219815 = r219812 / r219814;
        return r219815;
}

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