Average Error: 0.0 → 0.0
Time: 6.9s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{y + x}{y + 1}\]
\frac{x + y}{y + 1}
\frac{y + x}{y + 1}
double f(double x, double y) {
        double r151560 = x;
        double r151561 = y;
        double r151562 = r151560 + r151561;
        double r151563 = 1.0;
        double r151564 = r151561 + r151563;
        double r151565 = r151562 / r151564;
        return r151565;
}

double f(double x, double y) {
        double r151566 = y;
        double r151567 = x;
        double r151568 = r151566 + r151567;
        double r151569 = 1.0;
        double r151570 = r151566 + r151569;
        double r151571 = r151568 / r151570;
        return r151571;
}

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{y + x}{y + 1}\]

Reproduce

herbie shell --seed 2019179 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))