Average Error: 0.0 → 0.0
Time: 3.2s
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 r4012308 = x;
        double r4012309 = y;
        double r4012310 = r4012308 + r4012309;
        double r4012311 = 1.0;
        double r4012312 = r4012309 + r4012311;
        double r4012313 = r4012310 / r4012312;
        return r4012313;
}

double f(double x, double y) {
        double r4012314 = y;
        double r4012315 = x;
        double r4012316 = r4012314 + r4012315;
        double r4012317 = 1.0;
        double r4012318 = r4012314 + r4012317;
        double r4012319 = r4012316 / r4012318;
        return r4012319;
}

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