Average Error: 0.0 → 0.0
Time: 4.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 r174412 = x;
        double r174413 = y;
        double r174414 = r174412 + r174413;
        double r174415 = 1.0;
        double r174416 = r174413 + r174415;
        double r174417 = r174414 / r174416;
        return r174417;
}

double f(double x, double y) {
        double r174418 = x;
        double r174419 = y;
        double r174420 = r174418 + r174419;
        double r174421 = 1.0;
        double r174422 = r174419 + r174421;
        double r174423 = r174420 / r174422;
        return r174423;
}

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