Average Error: 0.0 → 0.0
Time: 9.2s
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 r193907 = x;
        double r193908 = y;
        double r193909 = r193907 + r193908;
        double r193910 = 1.0;
        double r193911 = r193908 + r193910;
        double r193912 = r193909 / r193911;
        return r193912;
}

double f(double x, double y) {
        double r193913 = x;
        double r193914 = y;
        double r193915 = r193913 + r193914;
        double r193916 = 1.0;
        double r193917 = r193914 + r193916;
        double r193918 = r193915 / r193917;
        return r193918;
}

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