Average Error: 0.0 → 0.0
Time: 9.7s
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 r159550 = x;
        double r159551 = y;
        double r159552 = r159550 + r159551;
        double r159553 = 1.0;
        double r159554 = r159551 + r159553;
        double r159555 = r159552 / r159554;
        return r159555;
}

double f(double x, double y) {
        double r159556 = y;
        double r159557 = x;
        double r159558 = r159556 + r159557;
        double r159559 = 1.0;
        double r159560 = r159556 + r159559;
        double r159561 = r159558 / r159560;
        return r159561;
}

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