Average Error: 0.0 → 0.0
Time: 8.0s
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 r129501 = x;
        double r129502 = y;
        double r129503 = r129501 + r129502;
        double r129504 = 1.0;
        double r129505 = r129502 + r129504;
        double r129506 = r129503 / r129505;
        return r129506;
}

double f(double x, double y) {
        double r129507 = x;
        double r129508 = y;
        double r129509 = r129507 + r129508;
        double r129510 = 1.0;
        double r129511 = r129508 + r129510;
        double r129512 = r129509 / r129511;
        return r129512;
}

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