Average Error: 0.0 → 0.0
Time: 33.6s
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 r11866369 = x;
        double r11866370 = y;
        double r11866371 = r11866369 + r11866370;
        double r11866372 = 1.0;
        double r11866373 = r11866370 + r11866372;
        double r11866374 = r11866371 / r11866373;
        return r11866374;
}

double f(double x, double y) {
        double r11866375 = y;
        double r11866376 = x;
        double r11866377 = r11866375 + r11866376;
        double r11866378 = 1.0;
        double r11866379 = r11866375 + r11866378;
        double r11866380 = r11866377 / r11866379;
        return r11866380;
}

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