Average Error: 0.0 → 0.0
Time: 10.5s
Precision: 64
\[\frac{x + y}{y + 1.0}\]
\[\frac{y + x}{y + 1.0}\]
\frac{x + y}{y + 1.0}
\frac{y + x}{y + 1.0}
double f(double x, double y) {
        double r11530605 = x;
        double r11530606 = y;
        double r11530607 = r11530605 + r11530606;
        double r11530608 = 1.0;
        double r11530609 = r11530606 + r11530608;
        double r11530610 = r11530607 / r11530609;
        return r11530610;
}

double f(double x, double y) {
        double r11530611 = y;
        double r11530612 = x;
        double r11530613 = r11530611 + r11530612;
        double r11530614 = 1.0;
        double r11530615 = r11530611 + r11530614;
        double r11530616 = r11530613 / r11530615;
        return r11530616;
}

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.0}\]
  2. Final simplification0.0

    \[\leadsto \frac{y + x}{y + 1.0}\]

Reproduce

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