Average Error: 0.0 → 0.0
Time: 1.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 r201843 = x;
        double r201844 = y;
        double r201845 = r201843 + r201844;
        double r201846 = 1.0;
        double r201847 = r201844 + r201846;
        double r201848 = r201845 / r201847;
        return r201848;
}

double f(double x, double y) {
        double r201849 = x;
        double r201850 = y;
        double r201851 = r201849 + r201850;
        double r201852 = 1.0;
        double r201853 = r201850 + r201852;
        double r201854 = r201851 / r201853;
        return r201854;
}

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