Average Error: 0.0 → 0.0
Time: 4.4s
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 r135857 = x;
        double r135858 = y;
        double r135859 = r135857 + r135858;
        double r135860 = 1.0;
        double r135861 = r135858 + r135860;
        double r135862 = r135859 / r135861;
        return r135862;
}

double f(double x, double y) {
        double r135863 = x;
        double r135864 = y;
        double r135865 = r135863 + r135864;
        double r135866 = 1.0;
        double r135867 = r135864 + r135866;
        double r135868 = r135865 / r135867;
        return r135868;
}

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