Average Error: 0.0 → 0.0
Time: 2.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 r265635 = x;
        double r265636 = y;
        double r265637 = r265635 + r265636;
        double r265638 = 1.0;
        double r265639 = r265636 + r265638;
        double r265640 = r265637 / r265639;
        return r265640;
}

double f(double x, double y) {
        double r265641 = x;
        double r265642 = y;
        double r265643 = r265641 + r265642;
        double r265644 = 1.0;
        double r265645 = r265642 + r265644;
        double r265646 = r265643 / r265645;
        return r265646;
}

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