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 r287650 = x;
        double r287651 = y;
        double r287652 = r287650 + r287651;
        double r287653 = 1.0;
        double r287654 = r287651 + r287653;
        double r287655 = r287652 / r287654;
        return r287655;
}

double f(double x, double y) {
        double r287656 = x;
        double r287657 = y;
        double r287658 = r287656 + r287657;
        double r287659 = 1.0;
        double r287660 = r287657 + r287659;
        double r287661 = r287658 / r287660;
        return r287661;
}

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