Average Error: 0.0 → 0.0
Time: 1.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 r244481 = x;
        double r244482 = y;
        double r244483 = r244481 + r244482;
        double r244484 = 1.0;
        double r244485 = r244482 + r244484;
        double r244486 = r244483 / r244485;
        return r244486;
}

double f(double x, double y) {
        double r244487 = x;
        double r244488 = y;
        double r244489 = r244487 + r244488;
        double r244490 = 1.0;
        double r244491 = r244488 + r244490;
        double r244492 = r244489 / r244491;
        return r244492;
}

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