Average Error: 0.0 → 0.0
Time: 6.6s
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 r12308662 = x;
        double r12308663 = y;
        double r12308664 = r12308662 + r12308663;
        double r12308665 = 1.0;
        double r12308666 = r12308663 + r12308665;
        double r12308667 = r12308664 / r12308666;
        return r12308667;
}

double f(double x, double y) {
        double r12308668 = y;
        double r12308669 = x;
        double r12308670 = r12308668 + r12308669;
        double r12308671 = 1.0;
        double r12308672 = r12308668 + r12308671;
        double r12308673 = r12308670 / r12308672;
        return r12308673;
}

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