Average Error: 0.0 → 0.0
Time: 11.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 r141547 = x;
        double r141548 = y;
        double r141549 = r141547 + r141548;
        double r141550 = 1.0;
        double r141551 = r141548 + r141550;
        double r141552 = r141549 / r141551;
        return r141552;
}

double f(double x, double y) {
        double r141553 = x;
        double r141554 = y;
        double r141555 = r141553 + r141554;
        double r141556 = 1.0;
        double r141557 = r141554 + r141556;
        double r141558 = r141555 / r141557;
        return r141558;
}

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