Average Error: 0.0 → 0.0
Time: 1.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 r289153 = x;
        double r289154 = y;
        double r289155 = r289153 + r289154;
        double r289156 = 1.0;
        double r289157 = r289154 + r289156;
        double r289158 = r289155 / r289157;
        return r289158;
}

double f(double x, double y) {
        double r289159 = x;
        double r289160 = y;
        double r289161 = r289159 + r289160;
        double r289162 = 1.0;
        double r289163 = r289160 + r289162;
        double r289164 = r289161 / r289163;
        return r289164;
}

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