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 r270646 = x;
        double r270647 = y;
        double r270648 = r270646 + r270647;
        double r270649 = 1.0;
        double r270650 = r270647 + r270649;
        double r270651 = r270648 / r270650;
        return r270651;
}

double f(double x, double y) {
        double r270652 = x;
        double r270653 = y;
        double r270654 = r270652 + r270653;
        double r270655 = 1.0;
        double r270656 = r270653 + r270655;
        double r270657 = r270654 / r270656;
        return r270657;
}

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