Average Error: 0.0 → 0.0
Time: 4.1s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{y + x}{y + 1}\]
\frac{x + y}{y + 1}
\frac{y + x}{y + 1}
double f(double x, double y) {
        double r9886542 = x;
        double r9886543 = y;
        double r9886544 = r9886542 + r9886543;
        double r9886545 = 1.0;
        double r9886546 = r9886543 + r9886545;
        double r9886547 = r9886544 / r9886546;
        return r9886547;
}

double f(double x, double y) {
        double r9886548 = y;
        double r9886549 = x;
        double r9886550 = r9886548 + r9886549;
        double r9886551 = 1.0;
        double r9886552 = r9886548 + r9886551;
        double r9886553 = r9886550 / r9886552;
        return r9886553;
}

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{y + x}{y + 1}\]

Reproduce

herbie shell --seed 2019174 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  (/ (+ x y) (+ y 1.0)))