Average Error: 0.0 → 0.0
Time: 1.5s
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 r251849 = x;
        double r251850 = y;
        double r251851 = r251849 + r251850;
        double r251852 = 1.0;
        double r251853 = r251850 + r251852;
        double r251854 = r251851 / r251853;
        return r251854;
}

double f(double x, double y) {
        double r251855 = x;
        double r251856 = y;
        double r251857 = r251855 + r251856;
        double r251858 = 1.0;
        double r251859 = r251856 + r251858;
        double r251860 = r251857 / r251859;
        return r251860;
}

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