Average Error: 0.0 → 0.0
Time: 1.2s
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 r206768 = x;
        double r206769 = y;
        double r206770 = r206768 + r206769;
        double r206771 = 1.0;
        double r206772 = r206769 + r206771;
        double r206773 = r206770 / r206772;
        return r206773;
}

double f(double x, double y) {
        double r206774 = x;
        double r206775 = y;
        double r206776 = r206774 + r206775;
        double r206777 = 1.0;
        double r206778 = r206775 + r206777;
        double r206779 = r206776 / r206778;
        return r206779;
}

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