Average Error: 0.0 → 0.0
Time: 3.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 r239699 = x;
        double r239700 = y;
        double r239701 = r239699 + r239700;
        double r239702 = 1.0;
        double r239703 = r239700 + r239702;
        double r239704 = r239701 / r239703;
        return r239704;
}

double f(double x, double y) {
        double r239705 = x;
        double r239706 = y;
        double r239707 = r239705 + r239706;
        double r239708 = 1.0;
        double r239709 = r239706 + r239708;
        double r239710 = r239707 / r239709;
        return r239710;
}

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)))