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 r351828 = x;
        double r351829 = y;
        double r351830 = r351828 + r351829;
        double r351831 = 1.0;
        double r351832 = r351829 + r351831;
        double r351833 = r351830 / r351832;
        return r351833;
}

double f(double x, double y) {
        double r351834 = x;
        double r351835 = y;
        double r351836 = r351834 + r351835;
        double r351837 = 1.0;
        double r351838 = r351835 + r351837;
        double r351839 = r351836 / r351838;
        return r351839;
}

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