Average Error: 0.0 → 0.0
Time: 1.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 r253342 = x;
        double r253343 = y;
        double r253344 = r253342 + r253343;
        double r253345 = 1.0;
        double r253346 = r253343 + r253345;
        double r253347 = r253344 / r253346;
        return r253347;
}

double f(double x, double y) {
        double r253348 = x;
        double r253349 = y;
        double r253350 = r253348 + r253349;
        double r253351 = 1.0;
        double r253352 = r253349 + r253351;
        double r253353 = r253350 / r253352;
        return r253353;
}

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