Average Error: 0.0 → 0.0
Time: 5.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 r137486 = x;
        double r137487 = y;
        double r137488 = r137486 + r137487;
        double r137489 = 1.0;
        double r137490 = r137487 + r137489;
        double r137491 = r137488 / r137490;
        return r137491;
}

double f(double x, double y) {
        double r137492 = x;
        double r137493 = y;
        double r137494 = r137492 + r137493;
        double r137495 = 1.0;
        double r137496 = r137493 + r137495;
        double r137497 = r137494 / r137496;
        return r137497;
}

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