Average Error: 0.0 → 0.0
Time: 7.3s
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 r137040 = x;
        double r137041 = y;
        double r137042 = r137040 + r137041;
        double r137043 = 1.0;
        double r137044 = r137041 + r137043;
        double r137045 = r137042 / r137044;
        return r137045;
}

double f(double x, double y) {
        double r137046 = x;
        double r137047 = y;
        double r137048 = r137046 + r137047;
        double r137049 = 1.0;
        double r137050 = r137047 + r137049;
        double r137051 = r137048 / r137050;
        return r137051;
}

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