Average Error: 0.0 → 0.0
Time: 3.9s
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 r227840 = x;
        double r227841 = y;
        double r227842 = r227840 + r227841;
        double r227843 = 1.0;
        double r227844 = r227841 + r227843;
        double r227845 = r227842 / r227844;
        return r227845;
}

double f(double x, double y) {
        double r227846 = x;
        double r227847 = y;
        double r227848 = r227846 + r227847;
        double r227849 = 1.0;
        double r227850 = r227847 + r227849;
        double r227851 = r227848 / r227850;
        return r227851;
}

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)))