Average Error: 0.0 → 0.0
Time: 1.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 r193793 = x;
        double r193794 = y;
        double r193795 = r193793 + r193794;
        double r193796 = 1.0;
        double r193797 = r193794 + r193796;
        double r193798 = r193795 / r193797;
        return r193798;
}

double f(double x, double y) {
        double r193799 = x;
        double r193800 = y;
        double r193801 = r193799 + r193800;
        double r193802 = 1.0;
        double r193803 = r193800 + r193802;
        double r193804 = r193801 / r193803;
        return r193804;
}

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