Average Error: 0.0 → 0.0
Time: 2.8s
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 r356108 = x;
        double r356109 = y;
        double r356110 = r356108 + r356109;
        double r356111 = 1.0;
        double r356112 = r356109 + r356111;
        double r356113 = r356110 / r356112;
        return r356113;
}

double f(double x, double y) {
        double r356114 = x;
        double r356115 = y;
        double r356116 = r356114 + r356115;
        double r356117 = 1.0;
        double r356118 = r356115 + r356117;
        double r356119 = r356116 / r356118;
        return r356119;
}

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