Average Error: 0.0 → 0.0
Time: 1.8s
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 r290763 = x;
        double r290764 = y;
        double r290765 = r290763 + r290764;
        double r290766 = 1.0;
        double r290767 = r290764 + r290766;
        double r290768 = r290765 / r290767;
        return r290768;
}

double f(double x, double y) {
        double r290769 = x;
        double r290770 = y;
        double r290771 = r290769 + r290770;
        double r290772 = 1.0;
        double r290773 = r290770 + r290772;
        double r290774 = r290771 / r290773;
        return r290774;
}

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