Average Error: 0.0 → 0.0
Time: 1.2s
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 r127653 = x;
        double r127654 = y;
        double r127655 = r127653 + r127654;
        double r127656 = 1.0;
        double r127657 = r127654 + r127656;
        double r127658 = r127655 / r127657;
        return r127658;
}

double f(double x, double y) {
        double r127659 = x;
        double r127660 = y;
        double r127661 = r127659 + r127660;
        double r127662 = 1.0;
        double r127663 = r127660 + r127662;
        double r127664 = r127661 / r127663;
        return r127664;
}

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 2019199 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))