Average Error: 0.0 → 0.0
Time: 2.1s
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 r185477 = x;
        double r185478 = y;
        double r185479 = r185477 + r185478;
        double r185480 = 1.0;
        double r185481 = r185478 + r185480;
        double r185482 = r185479 / r185481;
        return r185482;
}

double f(double x, double y) {
        double r185483 = x;
        double r185484 = y;
        double r185485 = r185483 + r185484;
        double r185486 = 1.0;
        double r185487 = r185484 + r185486;
        double r185488 = r185485 / r185487;
        return r185488;
}

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