Average Error: 0.0 → 0.0
Time: 3.1s
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{y + 1}\]
\frac{x + y}{y + 1}
\frac{x + y}{y + 1}
double f(double x, double y) {
        double r230535 = x;
        double r230536 = y;
        double r230537 = r230535 + r230536;
        double r230538 = 1.0;
        double r230539 = r230536 + r230538;
        double r230540 = r230537 / r230539;
        return r230540;
}

double f(double x, double y) {
        double r230541 = x;
        double r230542 = y;
        double r230543 = r230541 + r230542;
        double r230544 = 1.0;
        double r230545 = r230542 + r230544;
        double r230546 = r230543 / r230545;
        return r230546;
}

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{x + y}{y + 1}\]

Reproduce

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