Average Error: 0.0 → 0.0
Time: 1.6s
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 r249126 = x;
        double r249127 = y;
        double r249128 = r249126 + r249127;
        double r249129 = 1.0;
        double r249130 = r249127 + r249129;
        double r249131 = r249128 / r249130;
        return r249131;
}

double f(double x, double y) {
        double r249132 = x;
        double r249133 = y;
        double r249134 = r249132 + r249133;
        double r249135 = 1.0;
        double r249136 = r249133 + r249135;
        double r249137 = r249134 / r249136;
        return r249137;
}

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)))