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 r275380 = x;
        double r275381 = y;
        double r275382 = r275380 + r275381;
        double r275383 = 1.0;
        double r275384 = r275381 + r275383;
        double r275385 = r275382 / r275384;
        return r275385;
}

double f(double x, double y) {
        double r275386 = x;
        double r275387 = y;
        double r275388 = r275386 + r275387;
        double r275389 = 1.0;
        double r275390 = r275387 + r275389;
        double r275391 = r275388 / r275390;
        return r275391;
}

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