Average Error: 0.0 → 0.0
Time: 1.4s
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 r221719 = x;
        double r221720 = y;
        double r221721 = r221719 + r221720;
        double r221722 = 1.0;
        double r221723 = r221720 + r221722;
        double r221724 = r221721 / r221723;
        return r221724;
}

double f(double x, double y) {
        double r221725 = x;
        double r221726 = y;
        double r221727 = r221725 + r221726;
        double r221728 = 1.0;
        double r221729 = r221726 + r221728;
        double r221730 = r221727 / r221729;
        return r221730;
}

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