Average Error: 0.0 → 0.0
Time: 9.9s
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 r11423373 = x;
        double r11423374 = y;
        double r11423375 = r11423373 + r11423374;
        double r11423376 = 1.0;
        double r11423377 = r11423374 + r11423376;
        double r11423378 = r11423375 / r11423377;
        return r11423378;
}

double f(double x, double y) {
        double r11423379 = y;
        double r11423380 = x;
        double r11423381 = r11423379 + r11423380;
        double r11423382 = 1.0;
        double r11423383 = r11423379 + r11423382;
        double r11423384 = r11423381 / r11423383;
        return r11423384;
}

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