Average Error: 0.0 → 0.0
Time: 7.6s
Precision: 64
\[\frac{x + y}{y + 1.0}\]
\[\frac{y + x}{y + 1.0}\]
\frac{x + y}{y + 1.0}
\frac{y + x}{y + 1.0}
double f(double x, double y) {
        double r10119817 = x;
        double r10119818 = y;
        double r10119819 = r10119817 + r10119818;
        double r10119820 = 1.0;
        double r10119821 = r10119818 + r10119820;
        double r10119822 = r10119819 / r10119821;
        return r10119822;
}

double f(double x, double y) {
        double r10119823 = y;
        double r10119824 = x;
        double r10119825 = r10119823 + r10119824;
        double r10119826 = 1.0;
        double r10119827 = r10119823 + r10119826;
        double r10119828 = r10119825 / r10119827;
        return r10119828;
}

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.0}\]
  2. Final simplification0.0

    \[\leadsto \frac{y + x}{y + 1.0}\]

Reproduce

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