Average Error: 0.0 → 0.0
Time: 6.7s
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 r201141 = x;
        double r201142 = y;
        double r201143 = r201141 + r201142;
        double r201144 = 1.0;
        double r201145 = r201142 + r201144;
        double r201146 = r201143 / r201145;
        return r201146;
}

double f(double x, double y) {
        double r201147 = x;
        double r201148 = y;
        double r201149 = r201147 + r201148;
        double r201150 = 1.0;
        double r201151 = r201148 + r201150;
        double r201152 = r201149 / r201151;
        return r201152;
}

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