Average Error: 0.0 → 0.0
Time: 2.6s
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 r198912 = x;
        double r198913 = y;
        double r198914 = r198912 + r198913;
        double r198915 = 1.0;
        double r198916 = r198913 + r198915;
        double r198917 = r198914 / r198916;
        return r198917;
}

double f(double x, double y) {
        double r198918 = x;
        double r198919 = y;
        double r198920 = r198918 + r198919;
        double r198921 = 1.0;
        double r198922 = r198919 + r198921;
        double r198923 = r198920 / r198922;
        return r198923;
}

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