Average Error: 0.0 → 0.0
Time: 5.5s
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 r230854 = x;
        double r230855 = y;
        double r230856 = r230854 + r230855;
        double r230857 = 1.0;
        double r230858 = r230855 + r230857;
        double r230859 = r230856 / r230858;
        return r230859;
}

double f(double x, double y) {
        double r230860 = x;
        double r230861 = y;
        double r230862 = r230860 + r230861;
        double r230863 = 1.0;
        double r230864 = r230861 + r230863;
        double r230865 = r230862 / r230864;
        return r230865;
}

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