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 r234639 = x;
        double r234640 = y;
        double r234641 = r234639 + r234640;
        double r234642 = 1.0;
        double r234643 = r234640 + r234642;
        double r234644 = r234641 / r234643;
        return r234644;
}

double f(double x, double y) {
        double r234645 = x;
        double r234646 = y;
        double r234647 = r234645 + r234646;
        double r234648 = 1.0;
        double r234649 = r234646 + r234648;
        double r234650 = r234647 / r234649;
        return r234650;
}

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