Average Error: 0.0 → 0.0
Time: 6.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 r233685 = x;
        double r233686 = y;
        double r233687 = r233685 + r233686;
        double r233688 = 1.0;
        double r233689 = r233686 + r233688;
        double r233690 = r233687 / r233689;
        return r233690;
}

double f(double x, double y) {
        double r233691 = x;
        double r233692 = y;
        double r233693 = r233691 + r233692;
        double r233694 = 1.0;
        double r233695 = r233692 + r233694;
        double r233696 = r233693 / r233695;
        return r233696;
}

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