Average Error: 0.0 → 0.0
Time: 6.9s
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 r355588 = x;
        double r355589 = y;
        double r355590 = r355588 + r355589;
        double r355591 = 1.0;
        double r355592 = r355589 + r355591;
        double r355593 = r355590 / r355592;
        return r355593;
}

double f(double x, double y) {
        double r355594 = x;
        double r355595 = y;
        double r355596 = r355594 + r355595;
        double r355597 = 1.0;
        double r355598 = r355595 + r355597;
        double r355599 = r355596 / r355598;
        return r355599;
}

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