Average Error: 0.0 → 0.0
Time: 1.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 r220164 = x;
        double r220165 = y;
        double r220166 = r220164 + r220165;
        double r220167 = 1.0;
        double r220168 = r220165 + r220167;
        double r220169 = r220166 / r220168;
        return r220169;
}

double f(double x, double y) {
        double r220170 = x;
        double r220171 = y;
        double r220172 = r220170 + r220171;
        double r220173 = 1.0;
        double r220174 = r220171 + r220173;
        double r220175 = r220172 / r220174;
        return r220175;
}

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