Average Error: 0.0 → 0.0
Time: 3.8s
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 r154676 = x;
        double r154677 = y;
        double r154678 = r154676 + r154677;
        double r154679 = 1.0;
        double r154680 = r154677 + r154679;
        double r154681 = r154678 / r154680;
        return r154681;
}

double f(double x, double y) {
        double r154682 = y;
        double r154683 = x;
        double r154684 = r154682 + r154683;
        double r154685 = 1.0;
        double r154686 = r154682 + r154685;
        double r154687 = r154684 / r154686;
        return r154687;
}

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