Average Error: 0.0 → 0.0
Time: 601.0ms
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 r206204 = x;
        double r206205 = y;
        double r206206 = r206204 + r206205;
        double r206207 = 1.0;
        double r206208 = r206205 + r206207;
        double r206209 = r206206 / r206208;
        return r206209;
}

double f(double x, double y) {
        double r206210 = x;
        double r206211 = y;
        double r206212 = r206210 + r206211;
        double r206213 = 1.0;
        double r206214 = r206211 + r206213;
        double r206215 = r206212 / r206214;
        return r206215;
}

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