Average Error: 0.0 → 0.0
Time: 1.8s
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 r224476 = x;
        double r224477 = y;
        double r224478 = r224476 + r224477;
        double r224479 = 1.0;
        double r224480 = r224477 + r224479;
        double r224481 = r224478 / r224480;
        return r224481;
}

double f(double x, double y) {
        double r224482 = x;
        double r224483 = y;
        double r224484 = r224482 + r224483;
        double r224485 = 1.0;
        double r224486 = r224483 + r224485;
        double r224487 = r224484 / r224486;
        return r224487;
}

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