Average Error: 0.0 → 0.0
Time: 1.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 r231671 = x;
        double r231672 = y;
        double r231673 = r231671 + r231672;
        double r231674 = 1.0;
        double r231675 = r231672 + r231674;
        double r231676 = r231673 / r231675;
        return r231676;
}

double f(double x, double y) {
        double r231677 = x;
        double r231678 = y;
        double r231679 = r231677 + r231678;
        double r231680 = 1.0;
        double r231681 = r231678 + r231680;
        double r231682 = r231679 / r231681;
        return r231682;
}

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