Average Error: 0.0 → 0.0
Time: 6.1s
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 r284708 = x;
        double r284709 = y;
        double r284710 = r284708 + r284709;
        double r284711 = 1.0;
        double r284712 = r284709 + r284711;
        double r284713 = r284710 / r284712;
        return r284713;
}

double f(double x, double y) {
        double r284714 = x;
        double r284715 = y;
        double r284716 = r284714 + r284715;
        double r284717 = 1.0;
        double r284718 = r284715 + r284717;
        double r284719 = r284716 / r284718;
        return r284719;
}

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